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