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