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