import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int x=scanner.nextInt();
		int y=scanner.nextInt();
		int xs[]={-2,-2,-1,-1,1,1,2,2};
		int ys[]={-1,1,-2,2,-2,2,-1,1};
		dfs(0,0,0,x,y,xs,ys);
		System.out.println(bo?"YES":"NO");
	}

	static boolean bo=false;
	private static void dfs(int i, int x, int y,int gx,int gy, int[] xs, int[] ys) {
		if(x==gx&&y==gy){
			bo=true;
			return;
		}
		if(i==3){
			return;
		}
		
		for(int j=0;j<8;j++){
			dfs(i+1,x+xs[j],y+ys[j],gx,gy,xs,ys);
		}
	}
}