import algorithm, sequtils, strutils let m = stdin.readLine.split.map(parseInt).`[]`1 tps = m.newSeqWith stdin.readLine.split.map parseInt stps = tps.sortedByIt it[0] var pos = 0 cnt = 0 for tp in stps: let t = tp[0] p = tp[1] a = t - cnt d = abs pos - p if a < d: echo "No" quit() pos = p cnt = t echo "Yes"