#include using namespace std; int main(){ int n,m; cin >> n >> m; int ct=0,cp=0; for(int i=0; i> t >> p; if(t-ct < p-cp){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; }