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