#include<iostream> using namespace std; int main(){ int i=1,k,sum=0; cin>>k; while(sum<k){ sum+=1/i; i++; } cout<<i; }