using System; using System.Linq; using System.Collections.Generic; static class NagataKanaIsAGenius { public static void Main() { int n=int.Parse(Console.ReadLine()); int counter=0,max=n; while(true){ counter++; if(n%2==1)n=3*n+1; else n/=2; max=Math.Max(max,n); if(n==1)break; } Console.WriteLine(counter); Console.WriteLine(max); } }