def main():

    N = int(input())

    posi = [0, 0]

    time = 0

    txy = [[int(i) for i in input().split()] for _ in range(N)]

    for t, x, y in txy:

        move = abs(posi[0] - x) + abs(posi[1] - y)

        if (t - time) < move or (t - time) % 2 != move % 2:

            return print("No")

        time = t

        posi = [x, y]

    print("Yes")





if __name__ == '__main__':

    main()

def main():

    import sys

    input = sys.stdin.buffer.readline

    N = int(input())

    TXY = [[int(i) for i in input().split()] for j in range(N)]

    time, px, py = 0, 0, 0

    for t, x, y in TXY:

        move = abs(x-px) + abs(y-py)

        # print(move, t-time)

        if (t - time) % 2 != move % 2 or t - time < move:

            return print("No")

        time, px, py = t, x, y

    print("Yes")





if __name__ == '__main__':

    main()

def main():
    N = int(input())
    posi = [0, 0]
    time = 0
    txy = [[int(i) for i in input().split()] for _ in range(N)]
    for t, x, y in txy:
        move = abs(posi[0] - x) + abs(posi[1] - y)
        if (t - time) < move or (t - time) % 2 != move % 2:
            return print("No")
        time = t
        posi = [x, y]
    print("Yes")


if __name__ == "__main__":
    main()

def main():
    import sys

    input = sys.stdin.buffer.readline
    N = int(input())
    TXY = [[int(i) for i in input().split()] for j in range(N)]
    time, px, py = 0, 0, 0
    for t, x, y in TXY:
        move = abs(x - px) + abs(y - py)
        # print(move, t-time)
        if (t - time) % 2 != move % 2 or t - time < move:
            return print("No")
        time, px, py = t, x, y
    print("Yes")


if __name__ == "__main__":
    main()

+    import sys + +    input = sys.stdin.buffer.readline -    posi = [0, 0] -    time = 0 -    txy = [[int(i) for i in input().split()] for _ in range(N)] -    for t, x, y in txy: -        move = abs(posi[0] - x) + abs(posi[1] - y) -        if (t - time) < move or (t - time) % 2 != move % 2: +    TXY = [[int(i) for i in input().split()] for j in range(N)] +    time, px, py = 0, 0, 0 +    for t, x, y in TXY: +        move = abs(x - px) + abs(y - py) +        # print(move, t-time) +        if (t - time) % 2 != move % 2 or t - time < move: -        time = t -        posi = [x, y] +        time, px, py = t, x, y