using System;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;

namespace atcoder_past_problem
{
    class Program
    {
        static void Main(string[] args)
        {
            new Program().Solve(new Input(Console.In));
        }

        public void Solve(Input input)
        {
            if (Solve2(input))
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }

        public bool Solve2(Input input)
        {
            var n = input.ReadInt;
            var plan = new List<int[]>();
            for (var i = 0; i < n; i++)
            {
                plan.Add(input.ReadIntArray);
            }
            var sort = plan.OrderBy(p => p[0]);

            var axis = new int[] { 0, 0 };
            var time = 0;
            var distances = new int[4,2] {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};

            foreach (var p in plan)
            {
                var limit = p[0] - time;
                time += p[0];

                for (var i = 1; i <= limit; i++)
                {
                    if (p[1] > axis[0])
                        axis[0] += 1;
                    else if (p[1] < axis[0])
                        axis[0] -= 1;
                    else if (p[2] > axis[1])
                        axis[1] += 1;
                    else if (p[2] < axis[1])
                        axis[1] -= 1;
                    else
                        axis[0] += 1;
                }
                if (axis[0] != p[1] || axis[1] != p[2])
                    return false;
            }
            return true;
        }
    }

    public class Input
    {
        private TextReader Stream { get; }
        private char Separator { get; }
        private Queue<string> InputStream { get; }

        public Input(TextReader stream, char separator = ' ')
        {
            Stream = stream;
            Separator = separator;
            InputStream = new Queue<string>();
        }

        public string Read
        {
            get
            {
                if (InputStream.Count != 0) return InputStream.Dequeue();
                string[] tmp = Stream.ReadLine().Split(Separator);
                for (int i = 0; i < tmp.Length; ++i)
                    InputStream.Enqueue(tmp[i]);
                return InputStream.Dequeue();
            }
        }

        public string ReadLine => Stream.ReadLine();
        public int ReadInt => int.Parse(Read);
        public long ReadLong => long.Parse(Read);
        public double ReadDouble => double.Parse(Read);
        public int[] ReadIntArray => Stream.ReadLine().Split(Separator).Select(i => int.Parse(i)).ToArray();
        public long[] ReadLongArray => Stream.ReadLine().Split(Separator).Select(l => long.Parse(l)).ToArray();
    }
}
