n, m = map(int, input().split()) tp = [tuple(map(int, input().split())) for _ in range(m)] now = 0 pos = 0 for i in range(m): t, p = tp[i] if t - now < abs(p - pos): print("No") exit() now, pos = t, p print("Yes")