#include using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) i64 a,b; bool dfs(i64 x,i64 y){ if(x > a || y > b) return false; if(x == a && y == b) return true; if(dfs(x * 2,y + 1)){ return true; } if(dfs(x + 1,y * 2)){ return true; } return false; } int main(){ cin >> a >> b; if(dfs(0,0)){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }