using System; namespace a { class a { static void Main(string[] args) { var ss = Console.ReadLine().Split(); var np = 0; var nt = 0; var m = int.Parse(ss[1]); var f = true; for (int i = 0; i < m; i++) { ss = Console.ReadLine().Split(); var t = int.Parse(ss[0]); var p = int.Parse(ss[1]); if(t - nt < p - np) { f = false; break; } else { nt = t; np = p; } } Console.WriteLine("{0}",f ? "Yes":"No"); } } }