# python template for atcoder1 import sys sys.setrecursionlimit(10**9) input = sys.stdin.readline N = int(input()) M = int(input()) N += M//10 M %= 10 if N % 2 == 0 and M % 2 == 0: print("Yes") else: print("No")