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: time = t - time pos = abs(p - pos) if pos > time: print("No") break else: print("Yes")