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