import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int i = 0; int max = n; while (n > 1) { if (n % 2 == 0) { n /= 2; } else { n = 3 * n + 1; } i++; max = Math.max(max, n); } System.out.println(i); System.out.println(max); } }