#include "bits/stdc++.h" using namespace std; #define int long long int32_t main() { cin.tie(0)->sync_with_stdio(0); int n; cin >> n; for (int i = 0; ; ++i) { if ((i + 1) * 2 == 50) { cout << "No"; return 0; } if (n == 1) { cout << "Yes\n" << (i + 1) * 2 << '\n'; return 0; } if (n % 2) n = n * 3 + 1; else n /= 2; } }