h = int(input()) j = int(input()) if (j - h*10) %2==0: print("YES") else: print("NO")