N, M = map(int, input().split()) drops = [list(map(int, input().split())) for _ in range(M)] pos = 0 time = 0 for t, p in drops: if abs(p - pos) > t - time: print("No") break else: pos = p time = t else: print("Yes")