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