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