#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); long long N; cin >> N; if(N <= 0){cout << "No" << endl; return 0;} int ope = 1; while(ope <= 50 && N != 1){ if(ope == 50){cout << "No" << endl; return 0;} if(N%2) N = N*3+1; else N /= 2; ope+=2; } ope++; cout << "Yes" << endl; cout << ope << endl; }