A, B = map(int, input().split()) def solve(): x = A & B # print(f'{x=} {A=} {B=}') return A == x if solve(): print('Yes') else: print('No')