#include<bits/stdc++.h> using namespace std; //思路:存钱罐s,s<=k , s=s*i; int main(){ int k,i=0,s=1; cin>>k; while(s<=k){ i++; s=s*i; } cout<<i<<endl; }