n = int(input()) m = int(input()) n += m // 10 m %= 10 if n % 2 == 0 and m % 2 == 0: ans = "Yes" else: ans = "No" print(ans)