let encode = function
  |'N' -> 0x1
  |'S' -> 0x2
  |'E' -> 0x4
  |'W' -> 0x8
  | _ -> 0

let s = read_line ()

let rec solve acc i = if i = String.length s then acc else solve (acc lor encode s.[i]) (i+1)

let () = let r = solve 0 0 in
  let a = (r lxor (r lsr 1)) land 0x5 in
    print_string (if a = 0 then "YES" else "NO")