let array_of_string s = Array.init (String.length s) (fun i -> s.[i])

let () =
  let str = Array.to_list @@ array_of_string @@ read_line () in
  if List.exists (( = ) 'N') str = List.exists (( = ) 'S') str
  && List.exists (( = ) 'E') str = List.exists (( = ) 'W') str
  then print_endline "Yes"
  else print_endline "No"