n = int(eval(input()))

t0, x0, y0 = 0, 0, 0



for i in range(n):

  ti, xi, yi = list(map(int, input().split()))

  test = (ti - t0) - (xi + yi - x0 - y0)

  

  if test >= 0 and test % 2 == 0:

    t0, x0, y0 = ti, xi, yi

    if i == n-1:

      print("Yes")

  else:

    print("No")

    break
#高速化

import sys

input_ = sys.stdin.readline



n = int(input_())

t0, x0, y0 = 0, 0, 0



for i in range(n):

  ti, xi, yi = list(map(int, input_().split()))

  test = (ti - t0) - (xi + yi - x0 - y0)

  

  if test >= 0 and test % 2 == 0:

    t0, x0, y0 = ti, xi, yi

    if i == n-1:

      print("Yes")

  else:

    print("No")

    break
n = int(eval(input()))
t0, x0, y0 = 0, 0, 0
for i in range(n):
    ti, xi, yi = list(map(int, input().split()))
    test = (ti - t0) - (xi + yi - x0 - y0)
    if test >= 0 and test % 2 == 0:
        t0, x0, y0 = ti, xi, yi
        if i == n - 1:
            print("Yes")
    else:
        print("No")
        break

# 高速化
import sys

input_ = sys.stdin.readline
n = int(input_())
t0, x0, y0 = 0, 0, 0
for i in range(n):
    ti, xi, yi = list(map(int, input_().split()))
    test = (ti - t0) - (xi + yi - x0 - y0)
    if test >= 0 and test % 2 == 0:
        t0, x0, y0 = ti, xi, yi
        if i == n - 1:
            print("Yes")
    else:
        print("No")
        break

-n = int(eval(input())) +# 高速化 +import sys + +input_ = sys.stdin.readline +n = int(input_()) -    ti, xi, yi = list(map(int, input().split())) +    ti, xi, yi = list(map(int, input_().split()))