# include<iostream> using namespace std; int main (){ int n,i=0,b=1; cin>>n; while(1){ i++; b=b*i; if(b> n){ cout<<i; break; } } return 0; }