unittest
{
	assert( [ "SENW" ].parse.expand.solve == "Yes" );
	assert( [ "NSNNSNSN" ].parse.expand.solve == "Yes" );
	assert( [ "NNEW" ].parse.expand.solve == "No" );
	assert( [ "W" ].parse.expand.solve == "No" );
}



import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front.to!( dchar[] );
	return tuple( s );
}

auto solve( dchar[] s )
{
	auto ce = false;
	auto cw = false;
	auto cn = false;
	auto cs = false;
	foreach( u; s.sort().uniq )
	{
		final switch( u )
		{
			case 'E': ce = true; break;
			case 'W': cw = true; break;
			case 'N': cn = true; break;
			case 'S': cs = true; break;
		}
	}
	return ( ce == cw && cn == cs ) ? "Yes" : "No";
}
