#include<iostream> using namespace std; int main(){ int a,c=1; int b=1; cin>>a; while(c<a){ b+=1; c*=b; } cout<<b<<endl; return 0; }