# import pypyjit # pypyjit.set_param("max_unroll_recursion=-1") from collections import * from functools import * from itertools import * from heapq import * import sys, math # sys.setrecursionlimit(10**4) input = sys.stdin.readline def nb(i,j): return [(i-2,j-1), (i-2,j+1), (i-1,j-2), (i-1,j+2), (i+2,j-1), (i+2,j+1), (i+1,j-2), (i+1,j+2), ] v = deque() v.append((0,0)) dist = defaultdict(lambda:-1) dist[(0,0)] = 0 while v: x = v.popleft() if dist[x]==3: break for ix in nb(*x): if dist[ix]!=-1: continue dist[ix] = dist[x] + 1 v.append(ix) x,y = map(int,input().split()) if (x,y) in dist: print('YES') else: print('NO') # print(dist)