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