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