enum Step { p1(1, 2), p2(2, 1), p3(2, -1), p4(1, -2), p5(-1, -2), p6(-2, -1), p7(-2, 1), p8(-1, 2); int x, y; Step(int x, int y) { this.x = x; this.y = y; } } public class No_240 { static int decideX; static int decideY; public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); decideX = sc.nextInt(); decideY = sc.nextInt(); String ans = ""; if (Knight(0, 0, 0)) { ans = "YES"; } else { ans = "NO"; } System.out.println(ans); sc.close(); } static boolean Knight(int x, int y, int c) { if (judge(x, y)) { return true; } if (c >= 3) { return false; } for (Step s : Step.values()) { int nextX = x + s.x; int nextY = y + s.y; if (Knight(nextX, nextY, c + 1)) { return true; } } return false; } static boolean judge(int x, int y) { if (decideX == x && decideY == y) { return true; } else { return false; } } }