/* yukicoder No.88 次はどっちだ 解答者:ヒロソフ */ #include int main(void) { char Fast[10]; char Last[10]; scanf("%s", Fast); if (Fast[0] == 'o') sprintf(Last, "yukiko"); else sprintf(Last, "oda"); char board; int count = -4; for (int y = 0; y < 8; y++) { for (int x = 0; x < 8; x++) { scanf("%c", &board); if (board == '\n') { x--; continue; } if ((board == 'w') || (board == 'b')) count++; } } if ((count % 2) == 0)printf("%s\n", Fast); else printf("%s\n", Last); return 0; }