#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;

int main(){
	int N, S, E , W, i, res;
	N = 1;
	S = -1;
	E = 2;
	W = -2;
	i = 0;
	res = 0;
	string input;
	cin >> input;
	for(int i = 0; i < input.size(); i++){
		if(input[i] == 'N'){
			res += N;
		}
		if(input[i] == 'S'){
			res += S;
		}
		if(input[i] == 'E'){
			res += E;
		}
		if(input[i] == 'W'){
			res += W;
		}
	}
	if(res == 0){
		cout << "YES";
	}
	else cout << "NO";
	return 0;
	
}
