#include <cstdio>
int main()
{
	int N = 0, S = 0, W = 0, E = 0;
	char c;
	while ((c = getchar()) != EOF)
	{
		switch(c)
		{
			case 'N': ++N; break;
			case 'S': ++S; break;
			case 'W': ++W; break;
			case 'E': ++E; break;
		}
	}
	if(N && S) N = S = 0;
	if(W && E) W = E = 0;
	puts((N||S||W||E)?"No":"Yes");
}