#include<cstdio> int main(){ double s=0; int i=1,k; scanf("%d",&k); while(s<=k){ s+=1.0/i; i++; } printf("%d\n",i); return 0; }