X, Y = map(int, input().split())

way = [(2, 1), (2, -1), (-2, 1), (-2, -1), \
    (1, 2), (-1, 2), (1, -2), (-1, -2)]

s = set((0, 0))
def dfs(x, y, c):
    if c >= 3:
        return
    for nx, ny in way:
        nx += x
        ny += y
        s.add((nx, ny))
        dfs(nx, ny, c+1)

dfs(0, 0, 0)
if (X, Y) in s:
    print('YES')
else:
    print('NO')