import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] dx = {-2,-2,-1,-1,1,1,2,2}; int[] dy = {-1,1,-2,2,-2,2,-1,1}; Queue<Integer> xque = new LinkedList<>(); Queue<Integer> yque = new LinkedList<>(); int X = sc.nextInt(); int Y = sc.nextInt(); if(X==0 && Y == 0){ System.out.println("YES"); return; } xque.add(0); yque.add(0); for(int i=0;i<3;i++){ int len = xque.size(); for(int j=0;j<len;j++){ int nowx = xque.poll(); int nowy = yque.poll(); for(int k=0;k<dx.length;k++){ int nextx = nowx + dx[k]; int nexty = nowy + dy[k]; if(X == nextx && Y == nexty){ System.out.println("YES"); return; } xque.add(nextx); yque.add(nexty); } } } System.out.println("NO"); } }