#include #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") using namespace std; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); int A, B; cin >> A >> B; bool fn = true; for(int i = 0; i < 30; i++) { if(A >> i & 1) { if(!(B >> i & 1)) { fn = false; } } } cout << (fn ? "Yes\n" : "No\n"); return 0; }