#include <bits/stdc++.h>

using namespace std;
char s[1005];
map<char,bool> mp;
int main()
{
	scanf("%s",s);
	for(int i=0;i<strlen(s);i++) mp[s[i]]=true;
	if(mp['S']==mp['N']&&mp['E']==mp['W']) puts("Yes");
	else puts("No");
	return 0;
}