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