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