import java.util.*; public class Main { static int X; static int Y; 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 main(String[] args) { Scanner sc = new Scanner(System.in); X = sc.nextInt(); Y = sc.nextInt(); if(move(0,0,0)){ System.out.println("YES"); }else{ System.out.println("NO"); } } static boolean move(int x, int y, int c){ if(c>3){ return false; } if(x==X&&y==Y){ return true; } for(int i=0; i<8; i++){ if(move(x+dx[i], y+dy[i], c+1)){ return true; } } return false; } }