#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;cin>>s;
  int a=0,b=0,c=0,d=0;
  for(int i=0;i<s.size();i++){
    if(s[i]=='N')a++;
    if(s[i]=='S')b++;
    if(s[i]=='E')c++;
    if(s[i]=='W')d++;
  }
  if((a>0&&b==0)||(b>0&&a==0)||(c>0&&d==0)||(d>0&&c==0))cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}