#include <bits/stdc++.h>

using namespace std;
#define int long long
int MOD = 1000000007;

signed main(){
    string S;
    cin >> S;
    
    sort(S.begin(),S.end());
    S.erase(unique(S.begin(),S.end()),S.end());
    
    if(S=="ENSW"||S=="EW"||S=="NS") cout << "Yes" << endl;
    else cout << "No" << endl;
    
    return 0;
}

