#include using namespace std; int main(){ int n; cin >> n; int ans = 1; while(true){ ans++; if(n == 1){break;} else{ if(n % 2 == 0){ans++;n /= 2;} else{ans++;n = 3 * n + 1;} } if(ans > 50){cout << "No";return 0;} } cout << "Yes" << endl << ans << endl; }