using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static int[] IdouX = new int[8] { -2, -2, -1, -1, 1, 1, 2, 2 }; static int[] IdouY = new int[8] { -1, 1, -2, 2, -2, 2, -1, 1 }; static void Main() { XY P; string[] s = Console.ReadLine().Split(' '); P.X = long.Parse(s[0]); P.Y = long.Parse(s[1]); HashSet[] Hs = new HashSet[4]; for(int i = 0; i < 4; i++) { Hs[i] = new HashSet(); } Hs[0].Add(new XY(0, 0)); for(int i = 1; i <= 3; i++) { foreach(XY v in Hs[i-1].ToArray()) { for(int j = 0; j < 8; j++) { XY q = v; q.X += IdouX[j]; q.Y += IdouY[j]; Hs[i].Add(q); } } } for (int i = 0; i < 4; i++) { if (Hs[i].Contains(P)) { Console.WriteLine("YES"); return; } } Console.WriteLine("NO"); } } struct XY { public long X, Y; public XY(long x,long y) { X = x; Y = y; } }