var n=parseInt(readline()) var arr1=readline() var arr2=[] var arr3=["N","E","S","W"] var turnIndex=0 for(let i=0;i<n;i++){ if(arr1[i]=="L"){ turnIndex-=1 if(turnIndex==-1){ turnIndex=3 } }else if(arr1[i]=="R"){ turnIndex+=1 if(turnIndex==4){ turnIndex=0 } } } print(arr3[turnIndex])