N,M = map(int,input().split()) res = 0 now = 0 for i in range(M): t,p = map(int,input().split()) if abs(p-res) <= t - now: now = t res = p continue else: print('No') exit() print('Yes')