import java.io.*; import java.util.*; import java.math.*; class Main { static int goalX , goalY; static int[] dx = {-2,-2,-1,-1,1,1,2,2}; static int[] dy = {-1,1,-2,2,-2,2,-1,1}; public static void out (Object o) { System.out.println(o); } public static void solve (int x , int y , int n) { if (x == goalX && y == goalY) { out("YES"); System.exit(0); } if (n == 3) return; for (int i = 0; i < dx.length; i++) { solve(x + dx[i] , y + dy[i] , n + 1); } } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); goalX = Integer.parseInt(line[0]); goalY = Integer.parseInt(line[1]); solve(0 , 0 , 0); out("NO"); } }