fun main(args: Array) { val s = readLine()!! val ans = s.indices.all { if(it % 2 == 0) s[it] != ' ' else s[it] == ' ' } println(if(ans) "Yes" else "No") }