#! env python

# -*- coding: utf-8 -*-



import os

import sys



# at_coder.ABC086C_Traveling

# Date: 2019/06/02

# Filename: ABC086C_Traveling 



__author__ = 'acto_mini'

__date__ = "2019/06/02"





def main():

    # 作業ディレクトリを自身のファイルのディレクトリに変更

    os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))



    t, x, y = [0], [0], [0]



    # 整数の入力

    num = int(eval(input()))



    for i in range(num):

        a, b, c = list(map(int, input().split()))

        t.append(a)

        x.append(b)

        y.append(c)



    can = True

    for i in range(num):

        dt = t[i + 1] - t[i]

        dist = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i])

        if (dt < dist):

            can = False

        if (dt % 2 != dist % 2):

            can = False



    if can:

        print("Yes")

    else:

        print("No")



    return





if __name__ == '__main__':

    main()

#! env python

# -*- coding: utf-8 -*-



import os

import sys



# ac_py.main.py

# Date: 2020/06/08

# Filename: main.py 



__author__ = 'acto_mini'

__date__ = "2020/06/08"





def main():

    n = int(eval(input()))

    t_prev = 0

    x_prev = 0

    y_prev = 0

    for i in range(n):

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

        dt = t - t_prev

        dist = abs(x - x_prev) + abs(y - y_prev)

        if dt < dist or ((dt % 2) != (dist % 2)):

            print("No")

            exit()

        t_prev, x_prev, y_prev = t, x, y



    print("Yes")

    return





if __name__ == '__main__':

    main()

#! env python
# -*- coding: utf-8 -*-
import os
import sys

# at_coder.ABC086C_Traveling
# Date: 2019/06/02
# Filename: ABC086C_Traveling
__author__ = "acto_mini"
__date__ = "2019/06/02"


def main():
    # 作業ディレクトリを自身のファイルのディレクトリに変更
    os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))
    t, x, y = [0], [0], [0]
    # 整数の入力
    num = int(eval(input()))
    for i in range(num):
        a, b, c = list(map(int, input().split()))
        t.append(a)
        x.append(b)
        y.append(c)
    can = True
    for i in range(num):
        dt = t[i + 1] - t[i]
        dist = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i])
        if dt < dist:
            can = False
        if dt % 2 != dist % 2:
            can = False
    if can:
        print("Yes")
    else:
        print("No")
    return


if __name__ == "__main__":
    main()

#! env python
# -*- coding: utf-8 -*-
import os
import sys

# ac_py.main.py
# Date: 2020/06/08
# Filename: main.py
__author__ = "acto_mini"
__date__ = "2020/06/08"


def main():
    n = int(eval(input()))
    t_prev = 0
    x_prev = 0
    y_prev = 0
    for i in range(n):
        t, x, y = list(map(int, input().split()))
        dt = t - t_prev
        dist = abs(x - x_prev) + abs(y - y_prev)
        if dt < dist or ((dt % 2) != (dist % 2)):
            print("No")
            exit()
        t_prev, x_prev, y_prev = t, x, y
    print("Yes")
    return


if __name__ == "__main__":
    main()

-# at_coder.ABC086C_Traveling -# Date: 2019/06/02 -# Filename: ABC086C_Traveling +# ac_py.main.py +# Date: 2020/06/08 +# Filename: main.py -__date__ = "2019/06/02" +__date__ = "2020/06/08" -    # 作業ディレクトリを自身のファイルのディレクトリに変更 -    os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) -    t, x, y = [0], [0], [0] -    # 整数の入力 -    num = int(eval(input())) -    for i in range(num): -        a, b, c = list(map(int, input().split())) -        t.append(a) -        x.append(b) -        y.append(c) -    can = True -    for i in range(num): -        dt = t[i + 1] - t[i] -        dist = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i]) -        if dt < dist: -            can = False -        if dt % 2 != dist % 2: -            can = False -    if can: -        print("Yes") -    else: -        print("No") +    n = int(eval(input())) +    t_prev = 0 +    x_prev = 0 +    y_prev = 0 +    for i in range(n): +        t, x, y = list(map(int, input().split())) +        dt = t - t_prev +        dist = abs(x - x_prev) + abs(y - y_prev) +        if dt < dist or ((dt % 2) != (dist % 2)): +            print("No") +            exit() +        t_prev, x_prev, y_prev = t, x, y +    print("Yes")