import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
//auto PS = new Tuple!(long,string)[](M);
//x[]=1;でlong[]全要素1に初期化
void main()
{
    auto s = sread();
    auto tmp = new long[](4); //北西南東
    foreach (i; 0 .. s.length)
    {
        if (s[i] == 'N')
        {
            tmp[0] = 1;
        }
        else if (s[i] == 'W')
        {
            tmp[1] = -1;
        }
        else if (s[i] == 'S')
        {
            tmp[2] = -1;
        }
        else if (s[i] == 'E')
        {
            tmp[3] = 1;
        }
    }
    // writeln(tmp);
    if (tmp[0] + tmp[2] == 0 && tmp[1] + tmp[3] == 0)
    {
        writeln("Yes");
    }
    else
    {
        writeln("No");
    }

}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
