import collections
X,Y = map(int,input().split())
st = (0,0)
get = set()
moveto = [(-2,-1),(-2,+1),(-1,-2),(-1,2),(1,2),(1,-2),(2,-1),(2,1)]
d = collections.deque([(0,0,0)])
while d:
    x,y,c = d.popleft()
    if (x,y) in get:
        continue
    if c == 4:
        continue
    get.add((x,y))
    for dx,dy in moveto:
        if (x+dx,y+dy) in get:
            continue
        d.append((x+dx,y+dy,c+1))
print('YES' if (X,Y) in get else 'NO')