#include<iostream>
using namespace std;
int f1,f2,f3,f4;
int main(){
	
	string s;
	cin>>s;
	for(int i=0;i<s.size();i++){
		if(s[i]=='S')f1=1;
		if(s[i]=='E')f2=1;
		if(s[i]=='N')f3=1;
		if(s[i]=='W')f4=1;
		
	}
	if(f1==f3 && f2==f4)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;

}