#include using namespace std; int main() { int M, N, i = 0; cin >> N; M = N; while (N > 1) { i++; N = (N % 2 != 0) ? N * 3 + 1 : N / 2; M = max(N, M); } cout << i << '\n' << M << endl; return 0; }