object Main extends App {
	val s = scala.io.StdIn.readLine.toList.toSet


	if(s.size == 4){
		println("Yes")
	}else if(s.size == 1 || s.size == 3){
		println("No")
	}else{
		if(s.contains('W') && s.contains('E')){
			println("Yes")
		}else if(s.contains('S') && s.contains('N')){
			println("Yes")
		}else{
			println("No")
		}
	}

}
