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