#include<bits/stdc++.h>
using namespace std;
int main(){
int k,n=0;
cin>>k;
double Sn=0;
for(;Sn<=k;n++,Sn+=1.0/n);
cout<<n;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int k,n=0;
double Sn=0.0;
cin>>k;
while(Sn<=k){
n++;
Sn+=(1.0/n);
}
cout<<n;
}