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