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