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