def main():

    n = int(eval(input()))



    pt, px, py = 0, 0, 0

    for _ in range(n):

        t, x, y = list(map(int, input().split()))

        dt = t - pt

        dx = abs(x - px)

        dy = abs(y - py)

        if (dx + dy) % 2 != dt % 2:

            print('No')

            return

        if (dx + dy) > dt:

            print('No')

            return

    print('Yes')





if __name__ == '__main__':

    main()

def main():

    import sys

    input = sys.stdin.readline



    N = int(eval(input()))



    pt, px, py = 0, 0, 0

    for _ in range(N):

        t, x, y = list(map(int, input().split()))

        dt = t - pt

        dx = abs(x - px)

        dy = abs(y - py)

        dl = dx + dy



        if dt < dl or dl % 2 != dt % 2:

            print('No')

            return



        pt, px, py = t, x, y



    print('Yes')





if __name__ == '__main__':

    main()

def main():
    n = int(eval(input()))
    pt, px, py = 0, 0, 0
    for _ in range(n):
        t, x, y = list(map(int, input().split()))
        dt = t - pt
        dx = abs(x - px)
        dy = abs(y - py)
        if (dx + dy) % 2 != dt % 2:
            print("No")
            return
        if (dx + dy) > dt:
            print("No")
            return
    print("Yes")


if __name__ == "__main__":
    main()

def main():
    import sys

    input = sys.stdin.readline
    N = int(eval(input()))
    pt, px, py = 0, 0, 0
    for _ in range(N):
        t, x, y = list(map(int, input().split()))
        dt = t - pt
        dx = abs(x - px)
        dy = abs(y - py)
        dl = dx + dy
        if dt < dl or dl % 2 != dt % 2:
            print("No")
            return
        pt, px, py = t, x, y
    print("Yes")


if __name__ == "__main__":
    main()

-    n = int(eval(input())) +    import sys + +    input = sys.stdin.readline +    N = int(eval(input())) -    for _ in range(n): +    for _ in range(N): -        if (dx + dy) % 2 != dt % 2: +        dl = dx + dy +        if dt < dl or dl % 2 != dt % 2: -        if (dx + dy) > dt: -            print("No") -            return +        pt, px, py = t, x, y