#include #include using namespace std; int main() { for (int n;cin>>n,n!=0;){ set ss; while(n--){ int x,y;cin>>x>>y; ss.insert(x*21+y); } int cx=10,cy=10,m;cin>>m; while(m--){ char d;int l;cin>>d>>l; int vx=d=='E'?1:d=='W'?-1:0; int vy=d=='N'?1:d=='S'?-1:0; while(l--) ss.erase((cx+=vx)*21+(cy+=vy)); } cout<<(ss.empty()?"Yes":"No")<