#include<cstdio>
char str[10005];
bool used[1005];
int main(){
  scanf("%s",str+1);
  for(int i=1;str[i];++i){
    used[str[i]]=true;
  }
  if(used['W']^used['E']){
    printf("No\n");
  }else if(used['N']^used['S']){
    printf("No\n");
  }else printf("Yes\n");
  return 0;
}