def moves(x, y): dx = (-2, -2, -1, -1, +1, +1, +2, +2) dy = (-1, +1, -2, +2, -2, +2, -1, +1) return [(x+dx[i], y+dy[i]) for i in range(8)] X, Y = map(int, raw_input().split()) pos = set([(X, Y)]) for i in range(3): s = set(pos) for (x0, y0) in s: for (x, y) in moves(x0, y0): pos.add((x, y)) if (0, 0) in pos: print('YES') else: print('NO')