n = [ input().split() for x in range(int(input()))]

curr = [0,0,0]
tf = 1

for t in n:
    plc = [int(x) for x in t]
    dif = plc[0]-curr[0] - (plc[1]-curr[1] + plc[2]-curr[2])
    if dif < 0 or dif % 2 != 0:
        tf = 0
        break

if tf:
    print("Yes")
else:
    print("No")