#include<iostream> using namespace std; int main(){ int n,max=0; cin>>n; for(int i=1;i<=1;i++){ max=max+1/i; if(max>n) cout<<i; } return 0; }