ippo = [[-2, 1], [-2, -1], [-1, 2], [-1, -2], [ 1, 2], [ 1, -2], [ 2, 1], [ 2, -1]] reachable = [] # 0歩 reachable << [0, 0] # 1-3歩 3.times do base = reachable.clone base.each do | x0, y0 | ippo.each do | x1, y1 | reachable << [x0+x1, y0+y1] end end end X, Y = gets.split.map(&:to_i) puts reachable.include?([X, Y]) ? 'YES' : 'NO'