import math, strutils var tmp: int = stdin.readline.parseInt n: seq[int] while tmp != 1: n.add(tmp) if tmp mod 2 == 0: tmp = tmp div 2 else: tmp = 3 * tmp + 1 echo n.len echo n.max