N=int(eval(input()))

pos=[0,0]

now=0

flag=True

for i in range(N):

  t,x,y=list(map(int,input().split()))

  d = abs(x-pos[0])+abs(y-pos[1])

  if d>t-now:

    flag=False

    break

  else:

    if d%2==(t-now)%2:

      now=t

      pos[0],pos[1]=x,y

    else:

      flag=False

      break

if flag:

  print("Yes")

else:

  print("No")




def main():

    import sys



    input = sys.stdin.readline

    N = int(eval(input()))

    prev = 0

    x = 0

    y = 0



    for i in range(N):

        a, b, c = list(map(int, input().split()))

        dis = abs(b - x) + abs(c - y)

        diff = a - prev

        if diff >= dis and diff % 2 == dis % 2:

            prev = a

            x = b

            y = c

        else:

            print("No")

            exit(0)

    print("Yes")





main()

N = int(eval(input()))
pos = [0, 0]
now = 0
flag = True
for i in range(N):
    t, x, y = list(map(int, input().split()))
    d = abs(x - pos[0]) + abs(y - pos[1])
    if d > t - now:
        flag = False
        break
    else:
        if d % 2 == (t - now) % 2:
            now = t
            pos[0], pos[1] = x, y
        else:
            flag = False
            break
if flag:
    print("Yes")
else:
    print("No")

def main():
    import sys

    input = sys.stdin.readline
    N = int(eval(input()))
    prev = 0
    x = 0
    y = 0
    for i in range(N):
        a, b, c = list(map(int, input().split()))
        dis = abs(b - x) + abs(c - y)
        diff = a - prev
        if diff >= dis and diff % 2 == dis % 2:
            prev = a
            x = b
            y = c
        else:
            print("No")
            exit(0)
    print("Yes")


main()

-N = int(eval(input())) -pos = [0, 0] -now = 0 -flag = True -for i in range(N): -    t, x, y = list(map(int, input().split())) -    d = abs(x - pos[0]) + abs(y - pos[1]) -    if d > t - now: -        flag = False -        break -    else: -        if d % 2 == (t - now) % 2: -            now = t -            pos[0], pos[1] = x, y +def main(): +    import sys + +    input = sys.stdin.readline +    N = int(eval(input())) +    prev = 0 +    x = 0 +    y = 0 +    for i in range(N): +        a, b, c = list(map(int, input().split())) +        dis = abs(b - x) + abs(c - y) +        diff = a - prev +        if diff >= dis and diff % 2 == dis % 2: +            prev = a +            x = b +            y = c -            flag = False -            break -if flag: +            print("No") +            exit(0) -else: -    print("No") + + +main()