-- Try AtCoder
-- author: Leonardone @ NEETSDKASU
 
main = getLine >>= putStrLn . solve

solve str = ans where
    f (n, s, e, w) c =
        case c of
        'N' -> (n + 1, s, e, w)
        'S' -> (n, s + 1, e, w)
        'E' -> (n, s, e + 1, w)
        _   -> (n, s, e, w + 1)
    (n, s, e, w) = foldl f (0, 0, 0, 0) str
    ok x y = (x > 0 && y > 0) || (x == 0 && y == 0)
    ans = if (ok n s) && (ok e w) then "Yes" else "No"