#include #include #include void main(void){ char s[1000] = "a"; bool strcheck = true; gets(s); for(int i = 0 ; i < (int)strlen(s);i++){ if(s[i] == ' ' && i % 2 == 0 || s[i] != ' ' && i % 2 != 0){ strcheck = false; break; } } if(strcheck){ printf("Yes"); }else{ printf("No"); } }