#include using namespace std; #define TK 20 main() { while(1){ int n,tx[TK],ty[TK]; cin >> n; if(n==0) break; for(int i=0; i> x >> y; tx[i]=x; ty[i]=y; } int m; cin >> m; int x,y; x=y=10; int takara=n; for(int i=0; i> d >> move; for(int j=0; j0){ cout << "No" << endl; }else{ cout << "Yes" << endl; } } return 0; }