import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int max = n; int count = 0; while(n != 1) { count++; if(n % 2 == 0) n /= 2; else n = 3 * n + 1; if(max < n) max = n; } System.out.println(count); System.out.println(max); } }