#include<cstdio>
#include<cstring>
bool f[30];
char s[1100];
int n;

int main(){
	while(~scanf("%s", s)){
		n = strlen(s);
		memset(f, 0, sizeof(f));
		for(int i=0; i<n; i++){
			f[s[i]-'A'] = 1;
		}
        if(f['W'-'A'] != f['E'-'A'] || f['N'-'A'] != f['S'-'A']){
			puts("No");
        } else {
			puts("Yes");
        }
	}
	return 0;
}
