fun main() { println(if (Regex("([a-z] )+[a-z]").matches(readLine()!!)) "Yes" else "No") }