#include using namespace std; int main(){ int N; cin >> N; if(N == 1) cout << 0 << endl; for(int i=1, cnt=1; i= N){ cout << cnt << endl; break; } } }