#include<bits/stdc++.h> using namespace std; int main(){ int a,b = 1,c = 0,j = 1; cin>>a; while(j<a){ c++; j = j*c; } cout<<c; return 0; }