package no240;

import java.awt.Point;
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	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) {
		HashSet<Point> hs = new HashSet<>();
		hs.add(new Point(0,0));
		for(int i=0;i<3;i++) {
			HashSet<Point> hsn = new HashSet<>();
			for(Point p: hs) {
				for(int k=0;k<dx.length;k++) {
					hsn.add(new Point(p.x + dx[k], p.y + dy[k]));
				}
			}
			hs.addAll(hsn);
		}
		Scanner sc = new Scanner(System.in);
		if (hs.contains(new Point(sc.nextInt(),sc.nextInt()))) {
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}

}