\(A\)
咕咕
const int N=1005;
char s[N];int val[N],n;
int main(){
scanf("%s",s+1),n=strlen(s+1);
fp(i,1,n)++val[s[i]];
if((val['W']!=0)^(val['E']!=0))return puts("No"),0;
if((val['S']!=0)^(val['N']!=0))return puts("No"),0;
return puts("Yes"),0;
}