#include <iostream> using namespace std; int cal(int n){ if(n == 1) return 0; int count = 0; label: if(n %2 == 0){ n = n / 2; }else{ n = 3*n + 1; n = n / 2; } count ++; if(n == 1) return count; else goto label; } int main() { int num; while(cin >> num){ cout << cal(num) << endl; } }