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; // return [[1, 2], [1, -2], [-1, 2], ...] int[][] knightMoves() { int[][] moves; foreach (x, y; cartesianProduct([1, -1, 2, -2], [1, -1, 2, -2])) { if (abs(x) == abs(y)) continue; moves ~= [x, y]; } 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"); }