Q={(0,0)} for tests in range(3): NQ=set(Q) while Q: x,y=Q.pop() for z,w in [(x-2,y-1),(x-2,y+1),(x-1,y-2),(x-1,y+2),(x+1,y-2),(x+1,y+2),(x+2,y-1),(x+2,y+1)]: NQ.add((z,w)) Q=NQ if tuple(map(int,input().split())) in Q: print("YES") else: print("NO")