#include // #include using namespace std; using namespace numbers; int main(){ cin.tie(0)->sync_with_stdio(0); cin.exceptions(ios::badbit | ios::failbit); long long n; cin >> n; for(auto i = 2, t = 2; i <= 50; ++ i){ if(t == 2){ if(n == 1){ cout << "Yes\n" << i << endl; return 0; } t = 3; } else{ if(n % 2 == 0){ n = n / 2; } else{ n = 3 * n + 1; } t = 2; } } cout << "No\n"; return 0; } /* */ //////////////////////////////////////////////////////////////////////////////////////// // // // Coded by Aeren // // // ////////////////////////////////////////////////////////////////////////////////////////