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