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