object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val directions = sc.next().toSeq.distinct.sorted.unwrap
  println(if (Seq("EW", "NS", "ENSW").contains(directions)) "Yes" else "No")
}
