a,b=map(int,input().split())
if a|b==b:
    print("Yes")
else:
    print("No")