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

京公网安备 11010502036488号