dx = [-2,-2,-1,-1,1,1,2,2] dy = [-1,1,-2,2,-2,2,-1,1] nyrn = set() q = [(0,0,0)] while q: x,y,c = q.pop(0) nyrn.add((x,y)) if c > 3: continue for i in range(8): q.append((x+dx[i],y+dy[i],c+1)) X,Y = map(int,raw_input().split(" ")) print "YES" if (X,Y) in nyrn else "NO"