#include using namespace std; int n,c; main() { cin>>n; while(n>1) { if(n%2)c++,n++; c++;n/=2; } cout<