#include<bits/stdc++.h>
 
using namespace std;
 
int main()
{
    string s;
	map<char, bool> flag;
	cin>>s;
	for(int i=0;i<s.length();++i)
		flag[s[i]]=1;
	if(flag['N']!=flag['S']||flag['W']!=flag['E'])
	cout<<"No";
	else
	cout<<"Yes";
	return 0;
}