#include<stdio.h>
int main() {
unsigned int n, count = 0;
scanf("%d", &n);
if (n >= 0 && n < 100) {
while (n != 1) {
if (n % 2 == 0) n /= 2;
else n = n * 3 + 1;
count++;
}
printf("%d", count);
}
return 0;
}
int main() {
unsigned int n, count = 0;
scanf("%d", &n);
if (n >= 0 && n < 100) {
while (n != 1) {
if (n % 2 == 0) n /= 2;
else n = n * 3 + 1;
count++;
}
printf("%d", count);
}
return 0;
}