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