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