G = tuple(map(int, input().split())) if G == (0, 0): print('YES') exit() st = {(0, 0)} for _ in range(3): new_st = set() for x, y in st: for dx, dy in ((1, 2), (2, 1), (1, -2), (-2, 1), (-1, 2), (2, -1), (-1, -2), (-2, -1)): new_st.add((x + dx, y + dy)) st = new_st if G in st: print('YES') break else: print('NO')