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