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

string s;
bool foo[1000];

int main() {
    cin >> s;
    for (int i = 0; i < s.size(); i++) foo[s[i]] = 1;
    if (foo['N'] == foo['S'] && foo['W'] == foo['E']) cout << "Yes";
    else cout << "No";
}