package yukicoder; import java.util.Scanner; public class N240 { static int x,y,nowx=0,nowy=0,end=0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); x=sc.nextInt();y=sc.nextInt(); check(); for(int i=0;end==0&&i<=7;i++) { nowx=0;nowy=0; move(i); check(); //System.out.print("["+nowx+","+nowy+"]"+" "); for(int j=0;end==0&&j<=7;j++) { move(j); check(); //System.out.print("["+nowx+","+nowy+"]"+" "); for(int k=0;end==0&&k<=7;k++) { move(k); check(); //System.out.println("["+i+","+j+","+k+"]"); //System.out.println(); } } } if(end==1){System.out.println("YES");} else{System.out.println("NO");} } static void check() { if(x==nowx&&y==nowy){end=1;return;} else {return ;} } static void move(int i) { switch(i) { case 0: nowx+=2;nowy+=1; break; case 1: nowx+=2;nowy-=1; break; case 2: nowx-=2;nowy+=1; break; case 3: nowx-=2;nowy-=1; break; case 4: nowx+=1;nowy+=2; break; case 5: nowx+=1;nowy-=2; break; case 6: nowx-=1;nowy+=2; break; case 7: nowx-=1;nowy-=2; break; } } }