#include <bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	string s;
	bool west=false,north=false,east=false,south=false;
	bool afuera=true;
	cin >> s;
	for (int i = 0; i < s.size(); ++i){
		if(s[i]=='W')
			west=true;
		if(s[i]=='N')
			north=true;
		if(s[i]=='E')
			east=true;
		if(s[i]=='S')
			south=true;
	}
	if((west && !east)||(east && !west)){
		afuera=false;
	}
	if((north && !south)||(!north && south))
		afuera=false;
	if(afuera)
		cout << "Yes\n";
	else
		cout << "No\n";
	return 0;
}