using System; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace Program { class Program { static void Main(string[] args) { var list = new List(); var n0 = int.Parse(Console.ReadLine()); list.Add(n0); int n = n0; int cnt = 0; while (true) { if (n % 2 == 0) { n = n / 2; } else { n = 3 * n + 1; } list.Add(n); cnt++; if (n == 1) { break; } } Console.WriteLine(cnt); Console.WriteLine(list.Max()); } } }