X, Y = map(lambda X: abs(int(X)), 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")