import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import itertools X,Y = map(int,read().split()) dxs = [0,2,1,-1,-2,-2,-1,1,2] dys = [0,1,2,2,1,-1,-2,-2,-1] se = set([(0,0)]) for _ in range(3): se = set((x+dx,y+dy) for (x,y),(dx,dy) in itertools.product(se, zip(dxs, dys))) answer = 'YES' if (X,Y) in se else 'NO' print(answer)