#include <bits/stdc++.h> using namespace std; int main(){ int n,k=0; cin>>n; while(n!=1){ if(n%2==0) n/=2; else n=n*3+1; k++; } cout<<k; return 0; } /************************************************************** Problem: 1241 User: fzy001 Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/