X,Y,x,y=input().split() while 1:input();print("NS"[Y>y]*(y!=Y)+"WE"[X>x]*(x!=X));x+=(X>x)-(X<x);y+=(Y>y)-(Y<y) "NSWE"[y<Y:(y<Y)+1:2+(x>X)]