#include<bits/stdc++.h> using namespace std; int main( ){ int k;cin>>k; int fz=1,fm=1; double sn=0; while(1){ sn+=double(fz)/double(fm); fm++; if(sn>k)break; } cout<<fm; return 0; }