# -*- coding: utf-8 -*- """ No.240 ナイト散歩 https://yukicoder.me/problems/no/240 """ import sys from sys import stdin from collections import deque input = stdin.readline def solve(gx, gy, step=3): # ナイトが1歩で動ける座標 dx = [-2, -2, -1, -1, 1, 1, 2, 2] dy = [-1, 1, -2, 2, -2, 2, -1, 1] cx, cy = 0, 0 Q = deque() Q.append([cx, cy, step]) while Q: cx, cy, step = Q.popleft() if step > 0: for i in range(len(dx)): nx = cx + dx[i] ny = cy + dy[i] if nx == gx and ny == gy: return 'YES' Q.append([nx, ny, step - 1]) return 'NO' def main(args): gx, gy = map(int, input().split()) ans = solve(gx, gy) print(ans) if __name__ == '__main__': main(sys.argv[1:])