#include<stdio.h>

int main(){

  int N,xi,yi,M,n,e,x,y;
    scanf("%d",&N);
    for(xi=0;xi<N;xi++){if(N==0){break;}
      scanf("%d",&x);}
 for(yi=0;yi<N;yi++){scanf("%d",&y);}
scanf("%d",&M);  
 
 n=y-10; 
  if(n>0){printf("N %d\n",n);}
  else if(n<0){printf("S +%d\n",n);}
   e=x-10;
   if(e>0){printf("E %d\n",e);}
   else if(e<0){printf("W +%d\n",e);}
    if(N<=M&&e<=10||e>=-10||n<=10||n>=-10){printf("Yes\n");}
    else if(N>M||e>10||e<-10||n>10||n<-10){printf("No\n");}
  printf("\n");
 return 0;
}