from collections import Counter

S = input()

c = Counter(S)

if (c['N'] > 0 and c['S'] == 0) or (c['S'] > 0 and c['N'] == 0) or\

   (c['W'] > 0 and c['E'] == 0) or (c['E'] > 0 and c['W'] == 0):

    print('No')

else:

    print('Yes')

S = eval(input())

n = 'N' in S

w = 'W' in S

s = 'S' in S

e = 'E' in S

print(('No' if (n and not s) or (s and not n) or (w and not e) or (e and not w) else 'Yes'))

from collections import Counter

S = input()
c = Counter(S)
if (
    (c["N"] > 0 and c["S"] == 0)
    or (c["S"] > 0 and c["N"] == 0)
    or (c["W"] > 0 and c["E"] == 0)
    or (c["E"] > 0 and c["W"] == 0)
):
    print("No")
else:
    print("Yes")

S = eval(input())
n = "N" in S
w = "W" in S
s = "S" in S
e = "E" in S
print(
    (
        "No"
        if (n and not s) or (s and not n) or (w and not e) or (e and not w)
        else "Yes"
    )
)

-from collections import Counter - -S = input() -c = Counter(S) -if ( -    (c["N"] > 0 and c["S"] == 0) -    or (c["S"] > 0 and c["N"] == 0) -    or (c["W"] > 0 and c["E"] == 0) -    or (c["E"] > 0 and c["W"] == 0) -): -    print("No") -else: -    print("Yes") +S = eval(input()) +n = "N" in S +w = "W" in S +s = "S" in S +e = "E" in S +print( +    ( +        "No" +        if (n and not s) or (s and not n) or (w and not e) or (e and not w) +        else "Yes" +    ) +)