using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        var plans = new List<List<int>>();
        for (int i = 0; i < n; i++)
        {
            plans.Add(Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList());
        }

        var ACD = new AtCoDeer();
        var times = 0;
        foreach (var plan in plans)
        {
            var time = ACD.MoveToPlace(plan[1], plan[2]);
            var bufTime = times + time;
            if (bufTime == plan[0])
            {
                times = bufTime;
            }
            else if (bufTime <= plan[0] && time % 2 == plan[0] % 2)
            {
                times = bufTime;
            }
            else
            {
                Console.WriteLine("No");
                return;
            }
        }

        Console.WriteLine("Yes");
    }
}

internal class AtCoDeer
{
    public int x;
    public int y;

    public AtCoDeer()
    {
        x = 0;
        y = 0;
    }

    private void MoveUp()
    {
        x++;
    }

    private void MoveDown()
    {
        x--;
    }

    private void MoveRight()
    {
        y++;
    }

    private void MoveLeft()
    {
        y--;
    }

    public int MoveToPlace(int placeX, int placeY)
    {
        var count = 0;

        while (x != placeX || y != placeY)
        {
            if (x > placeX)
            {
                MoveDown();
            }
            else if (x < placeX)
            {
                MoveUp();
            }
            else if (y > placeY)
            {
                MoveLeft();
            }
            else if (y < placeY)
            {
                MoveRight();
            }

            count++;
        }

        return count;
    }
}
