import math import sys def S(): return sys.stdin.readline().rstrip() def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int, sys.stdin.readline().rstrip().split()) def LI(): return list(map(int, sys.stdin.readline().rstrip().split())) def LS(): return list(sys.stdin.readline().rstrip().split()) x, y = MI() dx = [-2, -2, -1, -1, 1, 1, 2, 2] dy = [-1, 1, -2, 2, -2, 2, -1, 1] pos = set([(0, 0)]) for i in range(8): pos.add((dx[i], dy[i])) for p in list(pos): for i in range(8): pos.add((p[0] + dx[i], p[1] + dy[i])) for p in list(pos): for i in range(8): pos.add((p[0] + dx[i], p[1] + dy[i])) if (x, y) in pos: print("YES") else: print("NO")