#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int n;
cin >> n;
int step = 0;
while (n != 1)
{
if (n % 2 == 0)
n = n / 2;
else
n = n * 3 + 1;
step++;
}
cout << step;
return 0;
}
京公网安备 11010502036488号