N = int(input())
txys = [list(map(int, input().split())) for _ in range(N) ]
txys.insert(0, [0, 0, 0])
 
for i in range(N):
    dt = txys[i+1][0] - txys[i][0]
    dist = abs(txys[i][1] - txys[i+1][1]) + abs(txys[i][2] - txys[i+1][2])
    if dt % 2 != dist % 2 or dist > dt:
        print("No")
        exit()
print("Yes")
