#include using namespace std; int main() { int n0; cin >> n0; int i1 = 0; int nmax = n0; while (n0 != 1) { if (n0 & 1) n0 = 3 * n0 + 1; else n0 /= 2; nmax = max(nmax, n0); ++i1; } cout << i1 << endl; cout << nmax << endl; return 0; }