package algo; import java.util.Scanner; //import algo.*; public class sample7 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int cnt = 0; int max = n; while (n != 1) { if(n % 2 == 0) { n = n / 2; } else { n = 3 * n + 1; } cnt++; max = Math.max(max, n); } System.out.println(cnt); System.out.println(max); } }