import sys

input = sys.stdin.readline

S = list(eval(input()))[: -1]

if (S.count("N") > 0 and (S.count("S") > 0)) or (S.count("N") == 0 and (S.count("S") == 0)):

  if (S.count("E") > 0 and (S.count("W") > 0)) or (S.count("E") == 0 and (S.count("W") == 0)):

    print("Yes")

    exit(0)

print("No")
import sys

input = sys.stdin.readline

S = list(eval(input()))[: -1]

n = S.count("N") > 0

e = S.count("E") > 0

s = S.count("S") > 0

w = S.count("W") > 0

if n and s or (n == 0 and (s == 0)):

  if e and w or (e == 0 and (w == 0)):

    print("Yes")

    exit(0)

print("No")
import sys

input = sys.stdin.readline
S = list(eval(input()))[:-1]
if (S.count("N") > 0 and (S.count("S") > 0)) or (
    S.count("N") == 0 and (S.count("S") == 0)
):
    if (S.count("E") > 0 and (S.count("W") > 0)) or (
        S.count("E") == 0 and (S.count("W") == 0)
    ):
        print("Yes")
        exit(0)
print("No")

import sys

input = sys.stdin.readline
S = list(eval(input()))[:-1]
n = S.count("N") > 0
e = S.count("E") > 0
s = S.count("S") > 0
w = S.count("W") > 0
if n and s or (n == 0 and (s == 0)):
    if e and w or (e == 0 and (w == 0)):
        print("Yes")
        exit(0)
print("No")

-if (S.count("N") > 0 and (S.count("S") > 0)) or ( -    S.count("N") == 0 and (S.count("S") == 0) -): -    if (S.count("E") > 0 and (S.count("W") > 0)) or ( -        S.count("E") == 0 and (S.count("W") == 0) -    ): +n = S.count("N") > 0 +e = S.count("E") > 0 +s = S.count("S") > 0 +w = S.count("W") > 0 +if n and s or (n == 0 and (s == 0)): +    if e and w or (e == 0 and (w == 0)):