import std.experimental.all; T read(T)() { return readln.chomp.to!T; } T[] reads(T)() { return readln.split.to!(T[]); } alias readint = read!int; alias readints = reads!int; Tuple!(int, int)[] knightMoves() { auto signs = cartesianProduct([1, -1], [1, -1]); Tuple!(int, int)[] moves; foreach (xy, sx, sy; cartesianProduct([[1, 2], [2, 1]], signs)) { moves ~= tuple(xy[0] * sx, xy[1] * sy); } return moves; } bool calc(int sx, int sy) { bool rec(int x, int y, int step) { if (x == sx && y == sy) return true; if (step == 3) return false; foreach (dxy; knightMoves()) { if (rec(x + dxy[0], y + dxy[1], step + 1)) return true; } return false; } return rec(0, 0, 0); } void main() { auto xy = readints(); int x = xy[0], y = xy[1]; writeln(calc(x, y) ? "YES" : "NO"); }