import sys x = list(map(int, input().split())) s = [0,0] p = [[-2,-1],[-2,1],[-1,-2],[-1,2],[1,-2],[1,2],[2,-1],[2,1]] for i in range(8): for j in range(8): for k in range(8): y = [s[0]+p[i][0]+p[j][0]+p[k][0],s[1]+p[i][1]+p[j][1]+p[k][1]] if y == x: print("YES") sys.exit() print("NO")