# -*- coding: utf-8 -*-



# AtCoder Grand Contest

# Problem A





if __name__ == '__main__':

    from collections import Counter



    s = Counter(eval(input()))



    if ('S' in list(s.keys())) and ('N' not in list(s.keys())):

        print('No')

    elif ('N' in list(s.keys())) and ('S' not in list(s.keys())):

        print('No')

    elif ('W' in list(s.keys())) and ('E' not in list(s.keys())):

        print('No')

    elif ('E' in list(s.keys())) and ('W' not in list(s.keys())):

        print('No')

    else:

        print('Yes')

# -*- coding: utf-8 -*-



# AtCoder Grand Contest

# Problem A





if __name__ == '__main__':

    s = eval(input())



    # See:

    # http://agc003.contest.atcoder.jp/data/agc/003/editorial.pdf

    # https://beta.atcoder.jp/contests/agc003/submissions/849782

    if (('S' in s) ^ ('N' in s)) or (('W' in s) ^ ('E' in s)):

        print('No')

    else:

        print('Yes')

# -*- coding: utf-8 -*-
# AtCoder Grand Contest
# Problem A
if __name__ == "__main__":
    from collections import Counter

    s = Counter(eval(input()))
    if ("S" in list(s.keys())) and ("N" not in list(s.keys())):
        print("No")
    elif ("N" in list(s.keys())) and ("S" not in list(s.keys())):
        print("No")
    elif ("W" in list(s.keys())) and ("E" not in list(s.keys())):
        print("No")
    elif ("E" in list(s.keys())) and ("W" not in list(s.keys())):
        print("No")
    else:
        print("Yes")

# -*- coding: utf-8 -*-
# AtCoder Grand Contest
# Problem A
if __name__ == "__main__":
    s = eval(input())
    # See:
    # http://agc003.contest.atcoder.jp/data/agc/003/editorial.pdf
    # https://beta.atcoder.jp/contests/agc003/submissions/849782
    if (("S" in s) ^ ("N" in s)) or (("W" in s) ^ ("E" in s)):
        print("No")
    else:
        print("Yes")

-    from collections import Counter - -    s = Counter(eval(input())) -    if ("S" in list(s.keys())) and ("N" not in list(s.keys())): -        print("No") -    elif ("N" in list(s.keys())) and ("S" not in list(s.keys())): -        print("No") -    elif ("W" in list(s.keys())) and ("E" not in list(s.keys())): -        print("No") -    elif ("E" in list(s.keys())) and ("W" not in list(s.keys())): +    s = eval(input()) +    # See: +    # http://agc003.contest.atcoder.jp/data/agc/003/editorial.pdf +    # https://beta.atcoder.jp/contests/agc003/submissions/849782 +    if (("S" in s) ^ ("N" in s)) or (("W" in s) ^ ("E" in s)):