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