def solve(string):



    n, *txy = list(map(int, string.split()))

    checks = [

        abs(x) + abs(y) <= t and (t + x + y) % 2 == 0

        for t, x, y in zip(txy[::3], txy[1::3], txy[2::3])

    ]

    return "Yes" if all(checks) else "No"





if __name__ == '__main__':

    n = int(eval(input()))

    print((solve('{}\n'.format(n) + '\n'.join([eval(input()) for _ in range(n)]))))

#!/usr/bin/env python3

# coding=utf-8



import sys



n = int(sys.stdin.readline().strip())



txy = [(0,0,0)]+[tuple(map(int, l.strip().split(" "))) for l in sys.stdin.readlines()]

check_txy = [abs(_x - _xp) + abs(_y - _yp) <= _t - _tp and (_t + _x + _y) % 2 == 0 for (_t, _x, _y), (_tp, _xp, _yp) in zip(txy[1:], txy)]

if all(check_txy):

    print("Yes")

else:

    print("No")

def solve(string):
    n, *txy = list(map(int, string.split()))
    checks = [
        abs(x) + abs(y) <= t and (t + x + y) % 2 == 0
        for t, x, y in zip(txy[::3], txy[1::3], txy[2::3])
    ]
    return "Yes" if all(checks) else "No"


if __name__ == "__main__":
    n = int(eval(input()))
    print((solve("{}\n".format(n) + "\n".join([eval(input()) for _ in range(n)]))))

#!/usr/bin/env python3
# coding=utf-8
import sys

n = int(sys.stdin.readline().strip())
txy = [(0, 0, 0)] + [
    tuple(map(int, l.strip().split(" "))) for l in sys.stdin.readlines()
]
check_txy = [
    abs(_x - _xp) + abs(_y - _yp) <= _t - _tp and (_t + _x + _y) % 2 == 0
    for (_t, _x, _y), (_tp, _xp, _yp) in zip(txy[1:], txy)
]
if all(check_txy):
    print("Yes")
else:
    print("No")

-def solve(string): -    n, *txy = list(map(int, string.split())) -    checks = [ -        abs(x) + abs(y) <= t and (t + x + y) % 2 == 0 -        for t, x, y in zip(txy[::3], txy[1::3], txy[2::3]) -    ] -    return "Yes" if all(checks) else "No" +#!/usr/bin/env python3 +# coding=utf-8 +import sys - -if __name__ == "__main__": -    n = int(eval(input())) -    print((solve("{}\n".format(n) + "\n".join([eval(input()) for _ in range(n)])))) +n = int(sys.stdin.readline().strip()) +txy = [(0, 0, 0)] + [ +    tuple(map(int, l.strip().split(" "))) for l in sys.stdin.readlines() +] +check_txy = [ +    abs(_x - _xp) + abs(_y - _yp) <= _t - _tp and (_t + _x + _y) % 2 == 0 +    for (_t, _x, _y), (_tp, _xp, _yp) in zip(txy[1:], txy) +] +if all(check_txy): +    print("Yes") +else: +    print("No")