N = int(input()) M = int(input()) N += M//10 print("Yes" if N%2==M%2==0 else "NO")