# coding: utf-8
# Here your code !

x,y=map(int,input().split())
ans=[(0,0)]
movelist=[(-2,-1),(-2,1),(-1,-2),(-1,2),(1,-2),(1,2),(2,-1),(2,1)]
for _ in range(3):
    tmpans=[i for i in ans]
    for i in ans:
        for j in movelist:
            tmpans.append((i[0]+j[0],i[1]+j[1]))
    ans=list(set(tmpans))
if (x,y) in ans:
    print("YES")
else:
    print("NO")