import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long nmax = n; int ni = 0; for(int i = 0; i < 500; i++) { if(n == 1) { ni = i; break; } if(n % 2 == 0) { n /= 2; } else { n = 3 * n + 1; } nmax = Math.max(nmax, n); } System.out.println(ni); System.out.println(nmax); } }