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