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