n, m = map(int, input().split()) now = 0 flg =False for i in range(m): t, p = map(int, input().split()) if t - p >= now: flg = True now = p if flg: print('Yes') else: print('No')