#include<iostream> int main(){ float i=1; double a,b=0; scanf("%lf",&a); while(b<=a){ b=1/i+b; i=i+1; } i=i-1; printf("%.0f",i); return 0; } //1410