object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val news = sc.next().toList.distinct
  val ret = news.forall(_ match {
    case 'N' => news.contains('S')
    case 'S' => news.contains('N')
    case 'E' => news.contains('W')
    case 'W' => news.contains('E')
  })
  if (ret) print("Yes") else print("No")
}

