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