bool = "Yes" s = gets.chomp.split("") s.length.times do|i| if((i+1) % 2 == 0) if(s[i] != " ") bool = "No" break end end end print(bool)