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