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