import std.stdio;
import std.conv, std.array, std.algorithm, std.string;
import std.math, std.random, std.range, std.datetime;
import std.bigint;

void main(){
	string s = readln.chomp;
	
	bool[char] flag;
	foreach(c; s) flag[c] = 1;
	
	string ans = "Yes";
	if('N' in flag && !('S' in flag)) ans = "No";
	if('S' in flag && !('N' in flag)) ans = "No";
	if('E' in flag && !('W' in flag)) ans = "No";
	if('W' in flag && !('E' in flag)) ans = "No";
	
	ans.writeln;
	
	}