#include <bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	int n=0,w=0,S=0,e=0;
	for(int i=0;i<s.size();i++){
		if(s[i]=='N')n=1;
		if(s[i]=='W')w=1;
		if(s[i]=='S')S=1;
		if(s[i]=='E')e=1;
	}
	if(n==S&&w==e){cout<<"Yes"<<endl;return 0;}
	cout<<"No"<<endl;
}
