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