import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int[] dy = {-1,0,1,0}; static int[] dx = {0,1,0,-1}; static int gx = sc.nextInt(); static int gy = sc.nextInt(); public static void main(String[] args) { out.println(dfs(0,0,0)?"YES":"NO"); } static boolean dfs(int x, int y, int n) { if (n>3) return false; if (x==gx && y==gy) return true; return ( dfs(x-2,y-1,n+1) || dfs(x-2,y+1,n+1) || dfs(x-1,y-2,n+1) || dfs(x-1,y+2,n+1) || dfs(x+1,y-2,n+1) || dfs(x+1,y+2,n+1) || dfs(x+2,y-1,n+1) || dfs(x+2,y+1,n+1) ); } }