xg, yg = map(int, input().split()) s = [[0 for _ in range(-10, 11)] for _ in range(-10, 11)] if xg < -10 or xg > 10 or yg < -10 or yg > 10: print("NO") else: x, y = 0, 0 flag = False for i in range(3): for j in [(x-2,y-1),(x-2,y+1),(x-1,y-2),(x-1,y+2),(x+1,y-2),(x+1,y+2),(x+2,y-1),(x+2,y+1)]: if s[x][y] == s[xg][yg]: flag = True break if flag: print("YES") else: print("NO")