x, y = map(lambda x:abs(int(x)), raw_input().split())
print "YES"*((max(x, y)<5 and (x!=y or x%2 or x<1)) or (4<max(x, y)<7 and (x+y)<10 and (x+y)%2))or"NO"