Here is a famous puzzle that mathematicians still haven't fully solved: • If n is even, divide it by 2. • If n is odd, make it 3n + 1. Repeat until n becomes 1.
Given n, count how many steps it takes to reach 1.
Input Format A single integer n.
Output Format Print the number of steps.
Constraints • 1 ≤ n ≤ 10^6 • Values in between can exceed 2^31, so use long long or long.