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