input() x, y = map(int, input().split()) xx, yy = map(int, input().split()) if (x + xx + y + yy) % 2 == 0: print("No") else: print("Yes")