using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace YukiCoder { public class Program { public static void Main(string[] args) { new Program().Solve(); } public void Solve() { int n = int.Parse(ReadLine()); List nList = new List(); nList.Add(n); while (n != 1) { if (n % 2 == 0) { n /= 2; } else { n = (3*n) +1; } nList.Add(n); } WriteLine(nList.IndexOf(1)); WriteLine(nList.Max()); } } }