Imports System

Public Class Program

    Public Shared Sub Main(args As String())

        Dim N As Integer = Integer.Parse(Console.ReadLine)
        Dim tn(N) As Integer
        Dim xn(N) As Integer
        Dim yn(N) As Integer

        tn(0) = 0
        xn(0) = 0
        yn(0) = 0

        For i As Integer = 1 To N
            Dim input() As String = Console.ReadLine.Split(" ")
            tn(i) = Integer.Parse(input(0))
            xn(i) = Integer.Parse(input(1))
            yn(i) = Integer.Parse(input(2))
        Next

        Dim flag As Boolean = True

        For i As Integer = 1 To N
            Dim td As Integer = tn(i) - tn(i - 1)
            Dim distance As Integer = Math.Abs(xn(i) - xn(i - 1)) + Math.Abs(yn(i) - yn(i - 1))

            If td < distance Then
                flag = False
                Exit For
            ElseIf (td - distance) Mod 2 = 1 Then
                flag = False
                Exit For
            End If
        Next

        If flag Then
            Console.WriteLine("Yes")
        Else
            Console.WriteLine("No")
        End If

    End Sub
End Class