n, m = [int(i) for i in input().split()] tt = 0 pt = 0 for i in range(m): t, p = [int(i) for i in input().split()] if abs(pt - p) > t - tt: print("No") exit() tt = t pp = p print("Yes")