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