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(); String ans = move(0,0,0,"NO"); System.out.println(ans); } static String move(int x, int y, int c, String S){ if(c>3){ return S; } if(x==X&&y==Y){ return "YES"; } for(int i=0; i<8; i++){ S=move(x+dx[i], y+dy[i], c+1, S); } return S; } }