#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 = 3; i <= 51; ++ i){ if(n == 1){ cout << "Yes " << i - 1 << "\n"; return 0; } if(n % 2 == 0){ n = n / 2; } else{ n = n * 3 + 1; } } cout << "No\n"; return 0; } /* */ //////////////////////////////////////////////////////////////////////////////////////// // // // Coded by Aeren // // // ////////////////////////////////////////////////////////////////////////////////////////