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