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

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

    int memo[300] = {};
    for(int i = 0;i < s.size();i++){
        memo[s[i]] = 1;
    }

    if(memo['S'] == memo['N'] && memo['W'] == memo['E']){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}