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

int main() {
  string s;
  cin>>s;
  int a=-1;
  int b=-1;
  int c=-1;
  int d=-1;
  for(int i=0;i<s.size();i++){
    if(s[i]=='N')a+=2;
    if(s[i]=='S')b+=2;
    if(s[i]=='E')c+=2;
    if(s[i]=='W')d+=2;
  }
  if(a*b>0&&c*d>0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
