s = {st for st in eval(input())}

if ({'S','N'} & s == {'S','N'} or {'S','N'} & s == set()) and ({'E','W'} & s == {'E','W'} or {'E','W'} & s == set()):

    print("Yes")

else:

    print("No")
def main():

    S = eval(input())

    we = ("W" in S and "E" in S) or ("W" not in S and "E" not in S)

    ns = ("N" in S and "S" in S) or ("N" not in S and "S" not in S)

    if we and ns:

        print("Yes")

    else:

        print("No")





if __name__ == '__main__':

    main()

s = {st for st in eval(input())}
if ({"S", "N"} & s == {"S", "N"} or {"S", "N"} & s == set()) and (
    {"E", "W"} & s == {"E", "W"} or {"E", "W"} & s == set()
):
    print("Yes")
else:
    print("No")

def main():
    S = eval(input())
    we = ("W" in S and "E" in S) or ("W" not in S and "E" not in S)
    ns = ("N" in S and "S" in S) or ("N" not in S and "S" not in S)
    if we and ns:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

-s = {st for st in eval(input())} -if ({"S", "N"} & s == {"S", "N"} or {"S", "N"} & s == set()) and ( -    {"E", "W"} & s == {"E", "W"} or {"E", "W"} & s == set() -): -    print("Yes") -else: -    print("No") +def main(): +    S = eval(input()) +    we = ("W" in S and "E" in S) or ("W" not in S and "E" not in S) +    ns = ("N" in S and "S" in S) or ("N" not in S and "S" not in S) +    if we and ns: +        print("Yes") +    else: +        print("No") + + +if __name__ == "__main__": +    main()