#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std
;
int main
(){
int i
,j
,k
;
double s
=0.0;
scanf
("%d",&k
);
for (i
= 1;s
<= k
;i
++){
s
+=(1.0)/i
;
}
printf
("%d",i
-1);
return 0;
}
转载请注明原文地址: https://lol.8miu.com/read-19913.html