#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; int main(void) { int n, m; cin >> n >> m; vector t(m); vector p(m); ll cur = 0; bool pos = true; rep(i, m) { cin >> t[i] >> p[i]; if (abs(cur - p[i]) > t[i]) { pos = false; } else { cur = p[i]; } } if (pos) cout << "Yes" << endl; else cout << "No" << endl; return 0; }