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