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