#import <stdio.h>
int main(){
    int p=0;
    int q=0;
    int r=0;
    int s=0;
    char c;
    while((c=getchar())!=EOF){
        if (c=='N') p++;
        else if (c=='S') q++;
        else if (c=='E') r++;
        else if (c=='W') s++;
        else break;
    }
    puts((p==0&&q>0)||(p>0&&q==0)||(r==0&&s>0)||(r>0&&s==0) ? "No" : "Yes");
}
