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

#define EPS 1e-9

typedef vector<int>vi;


int main() {
    string s;
    cin >> s;

    bool arr[4];

    for(int i=0; i<4; i++)arr[i] = false;

    for(int i=0;i<s.size(); i++) {

        if(s[i] == 'N') arr[0] = true;
        else if(s[i] == 'S')arr[1] = true;
        else if(s[i] == 'E')arr[2] = true;
        else if(s[i] == 'W')arr[3] = true;

    }

    if((arr[0] && arr[1]) || (!arr[0] && !arr[1])) {

        if((arr[2] && arr[3]) || (!arr[2] && !arr[3])) {
            cout << "Yes\n";
            return 0;
        }

    }

    cout << "No\n";

    return 0;
}
