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