#include #define REPP(i,n,m) for(int i=n;i<=m;i++) #define REPM(i,n,m) for(int i=n;i>=m;i--) using namespace std; void yn(bool f){if(f){cout<<"Yes\n";}else{cout<<"No\n";}} bool isnum(char c){return ('0'<=c&&c<='9');} int main(){ int n; int cnt=0; cin>>n; for(;cnt<=50;){ cnt++; if(n==1){ break; } cnt++; if(n%2==0){ n/=2; } else{ n=3*n+1; } } cnt++; if(n==1&&cnt<=50){ cout<<"Yes\n"<