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