/* -*- coding: utf-8 -*- * * 3631.cc: No.3631 Collatz conjecture - yukicoder */ #include #include using namespace std; /* main */ int main() { int n; scanf("%d", &n); int cnt = 0; while (n != 1) { if (n & 1) n = n * 3 + 1; else n /= 2; cnt++; } printf("%d\n", cnt); return 0; }