#include <iostream>
#include <string>
using namespace std;
int a[4]; // NWSE
string s;
int main(){
    cin>>s;
    for(int i=0;i<s.size();i++){
        if(s[i]=='N') a[0]=1;
        if(s[i]=='W') a[1]=1;
        if(s[i]=='S') a[2]=1;
        if(s[i]=='E') a[3]=1;
    }
    if((a[0]^a[2])||(a[1]^a[3])) cout<<"No";
    else cout<<"Yes";
}