#include<bits/stdc++.h> using namespace std; int main(){ int n=1,jc=1,k; cin>>k; while(1){ jc*=n; if(jc>k)break; n++; } cout<<n; return 0; }