import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); 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 (x==gx && y==gy) return true; if (n>3) return false; 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) ); } }