#include <cstdio>
#include <iostream>

using namespace std;

int main(){
	int n, s, w, e, i=0;
	n=s=w=e=0;
	char cad[1001] = {'h'};
	scanf("%s", cad);
	while(cad[i] == 'N' || cad[i] == 'W' || cad[i] == 'E' || cad[i] == 'S'){
	    if (cad[i] == 'N') n++;
	    if (cad[i] == 'S') s++;
	    if (cad[i] == 'W') w++;
	    if (cad[i] == 'E') e++;
	    i++;
	}
	if(n > 0 && s>0 && (e==0 && w==0) )
	printf("YES\n");
	else if(w > 0 && e>0 && (n == 0 && s==0))
	    printf("YES");
	else if((n > 0 && s>0) && (w > 0 && e>0))
	printf("YES\n");
	else
	    printf("NO\n");
	

}