def slove():

    import sys

    input = sys.stdin.readline

    ss = str(input().rstrip('\n'))

    n = 1 if ss.count("N") != 0 else 0

    w = 1 if ss.count("W") != 0 else 0

    s = 1 if ss.count("S") != 0 else 0

    e = 1 if ss.count("E") != 0 else 0

    if n == s and w == e:

        print("Yes")

    else:

        print("No")





if __name__ == '__main__':

    slove()

def slove():

    import sys

    import collections

    input = sys.stdin.readline

    s = collections.Counter(str(input().rstrip('\n')))

    if len(s) == 4:

        print("Yes")

    elif len(s) == 2:

        if "N" in s and "S" in s:

            print("Yes")

        elif "E" in s and "W" in s:

            print("Yes")

        else:

            print("No")

    else:

        print("No")





if __name__ == '__main__':

    slove()

def slove():
    import sys

    input = sys.stdin.readline
    ss = str(input().rstrip("\n"))
    n = 1 if ss.count("N") != 0 else 0
    w = 1 if ss.count("W") != 0 else 0
    s = 1 if ss.count("S") != 0 else 0
    e = 1 if ss.count("E") != 0 else 0
    if n == s and w == e:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    slove()

def slove():
    import sys
    import collections

    input = sys.stdin.readline
    s = collections.Counter(str(input().rstrip("\n")))
    if len(s) == 4:
        print("Yes")
    elif len(s) == 2:
        if "N" in s and "S" in s:
            print("Yes")
        elif "E" in s and "W" in s:
            print("Yes")
        else:
            print("No")
    else:
        print("No")


if __name__ == "__main__":
    slove()

+    import collections -    ss = str(input().rstrip("\n")) -    n = 1 if ss.count("N") != 0 else 0 -    w = 1 if ss.count("W") != 0 else 0 -    s = 1 if ss.count("S") != 0 else 0 -    e = 1 if ss.count("E") != 0 else 0 -    if n == s and w == e: +    s = collections.Counter(str(input().rstrip("\n"))) +    if len(s) == 4: +    elif len(s) == 2: +        if "N" in s and "S" in s: +            print("Yes") +        elif "E" in s and "W" in s: +            print("Yes") +        else: +            print("No")