m100= int(input()) m10= int(input()) if m100 == m10 or (m100 % 2 ==0 and m10 % 2 ==0): print("Yes") else: print('No')