#include<bits/stdc++.h>
using namespace std;

int main(){
	string a;
	cin >> a;
	int n = 0,s = 0,e = 0,w = 0;
	for(int i = 0; i < a.size(); i++){
		if(a[i] == 'S')s = 1;
		if(a[i] == 'N')n = 1;
		if(a[i] == 'W')w = 1;
		if(a[i] == 'E')e = 1;
	}
	if(s == n && e == w){
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
	return 0;
}