import java.util.*; public class walkChess{ static int x; static int y; static final int[] canMove_x = {-2,-2,-1,-1,1,1,2,2}; static final int[] canMove_y = {-1,1,-2,2,-2,2,-1,1}; public static void main(String... args){ int base_x = 0,base_y = 0; Scanner s = new Scanner(System.in); x = s.nextInt(); y = s.nextInt(); System.out.println(judge(0,0,0)); } public static String judge(int px,int py,int cw){ int count = cw; if(px == x && py == y){ return "YES"; }else if(cw == 3){ return "NO"; }else{ for(int i = 0; i < 8; i++){ int after_x = px+canMove_x[i]; int after_y = py+canMove_y[i]; if(judge(after_x,after_y,count++).equals("YES")){ return "YES"; } } return "NO"; } } }