N, M = map(int, input().split()) t0, p0, ans = 0, 0, 'Yes' for _ in range(M): t, p = map(int,input().split()) if abs(p-p0) > (t-t0): ans = 'No' t0, p0 = t, p print(ans)