#include<bits/stdc++.h> using namespace std; int main() { int s,n,i=1; cin>>s; while(i++) { n+=1/i; if(n>s) break; } printf("%d",i); return 0; }