N,M = map(int,input().split()) place = 0 time = 0 ans = True for i in range(M): T,P = map(int,input().split()) if abs(place-P) > T-time: ans = False place = P time = T if ans: print('Yes') else: print('No')