from itertools import product X, Y = map(int, input().split()) d = [[-2,-1],[-2,1],[-1,-2],[-1,2],[1,-2],[1,2],[2,-1],[2,1]] yes = False for steps in product(d, repeat=3): x = y = 0 for s in steps: x += s[0] y += s[1] if x==X and y==Y: yes = True break print('YES' if yes else 'NO')