package yukicoder; import java.util.Scanner; public class N240 { public int x, y; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); N240 hoge = new N240(x, y); } N240(int x, int y){ this.x = x; this.y = y; if(this.hoge(0, 0, 0)){ System.out.println("YES"); }else{ System.out.println("NO"); } } public boolean hoge(int x, int y, int c){ if(x == this.x && y == this.y){ return true; } if(c >= 3){ return false; } return(hoge(x-2, y-1, c+1) || hoge(x-2, y+1, c+1) || hoge(x-1, y-2, c+1) || hoge(x-1, y+2, c+1) || hoge(x+1, y-2, c+1) || hoge(x+1, y+2, c+1) || hoge(x+2, y-1, c+1) || hoge(x+2, y+1, c+1)); } }