#include using namespace std; int main(){ int N, M; cin >> N >> M; long t = 0, p = 0; while(M--){ long T, P; cin >> T >> P; if(T - t < abs(P - p)){ cout << "No"; return 0; } t = T, p = P; } cout << "Yes"; }