a,b=map(int,input().split()) ng=0 for i in range(30): if a>>i&1 and not(b>>i&1): ng=1 print('YNeos'[ng::2])