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