# ABC086C - Traveling (ARC089C)

import sys

input = sys.stdin.readline



def main():

    n = int(eval(input()))

    A = tuple(tuple(map(int, input().rstrip().split())) for _ in range(n))

    for t, x, y in A:

        if x + y > t or (t + x + y) % 2 != 0:

            print("No")

            break

    else:

        print("Yes")





if __name__ == "__main__":

    main()
# ABC086C - Traveling (ARC089C)

import sys

input = sys.stdin.readline



def main():

    n = int(eval(input()))

    A = tuple(tuple(map(int, input().split())) for _ in range(n))

    for t, x, y in A:

        if x + y > t or (t + x + y) % 2 != 0:

            print("No")

            break

    else:

        print("Yes")





if __name__ == "__main__":

    main()
# ABC086C - Traveling (ARC089C)
import sys

input = sys.stdin.readline


def main():
    n = int(eval(input()))
    A = tuple(tuple(map(int, input().rstrip().split())) for _ in range(n))
    for t, x, y in A:
        if x + y > t or (t + x + y) % 2 != 0:
            print("No")
            break
    else:
        print("Yes")


if __name__ == "__main__":
    main()

# ABC086C - Traveling (ARC089C)
import sys

input = sys.stdin.readline


def main():
    n = int(eval(input()))
    A = tuple(tuple(map(int, input().split())) for _ in range(n))
    for t, x, y in A:
        if x + y > t or (t + x + y) % 2 != 0:
            print("No")
            break
    else:
        print("Yes")


if __name__ == "__main__":
    main()

-    A = tuple(tuple(map(int, input().rstrip().split())) for _ in range(n)) +    A = tuple(tuple(map(int, input().split())) for _ in range(n))