A, B = map(int, input().split()) print("Yes" if (A & B) == A else "No")