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

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

  if((s.find("N")!=-1)==(s.find("S")!=-1)){
    if((s.find("W")!=-1)==(s.find("E")!=-1))cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }else cout<<"No"<<endl;
}
