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

#define rep(i,l,r) for(int i=l;i<=r;++i)

int main()
{
	//freopen("1.in","r",stdin);
	string s;
	cin>>s;
	char c[]="NWSE";bool have[4];
	rep(i,0,3)have[i]=s.find(c[i])!=string::npos;
	rep(i,0,1)
	if(have[i]^have[i+2])
	{
		puts("No");
		exit(0);
	}
	puts("Yes");
}