N = int(input())
t, x, y = zip(*(map(int, input().split()) for _ in range(N)))

ans = True
ct, cx, cy = (0, 0, 0)
for i in range(N):
    dt = t[i] - ct
    dx = abs(x[i] - cx)
    dy = abs(y[i] - cy)
    if dt < dx + dy:
        ans = False
        break
    if (dt - dx - dy) % 2 != 0:
        ans = False
        break
    ct = t[i]
    cx = x[i]
    cy = y[i]

print("Yes" if ans else "No")
