#include<stdio.h> int main() { int a=1,N; double b=0.0; scanf("%d",&N); for(;b<N;) { b=1.0/a+b; a++; } printf("%d",a); return 0; }