n = int(input())
Flg = True
for _ in range(n):
    t, x, y = map(int, input().split())
    xy = x+y
    if t >= (xy):
        if ((t % 2 != 0) & (xy % 2 == 0)) or (t % 2 == 0 & xy % 2 != 0):
            Flg = False
    else:
        Flg = False
if Flg == True:
    print("Yes")
else:
    print("No")