#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;cin>>s;
    map<char,int>mpp;
    for(int i=0;i<s.size();++i){
        mpp[s[i]]=1;
    }
    if(mpp['N']==mpp['S'] && mpp['E']==mpp['W']){
        puts("Yes");   
    }else puts("No");
    return 0;
}
