#include #include #include #include #include #include #include #include #include #include using namespace std; long long gcd(long long a,long long b){ long long x=max(a,b),y=min(a,b); if(x%y==0)return y; else return gcd(y,x%y); } int main(){ int n,m; cin >> n >> m; vector> pa(m+1); pa[0].first = pa[0].second = 0; for(int i=1;i<=m;i++){ long long t,p; cin >> t >> p; pa[i].first=p; pa[i].second=t; } sort(pa.begin(),pa.end()); for(int i=1;i<=m;i++){ if(pa[i].first - pa[i-1].first > pa[i].second - pa[i-1].second){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }