#[allow(unused)] use proconio::{input, marker::Chars}; fn main() { input! { s: String, b:[Chars; 8], } let mut player = vec![s.clone()]; if s == "yukiko" { player.push(String::from("oda")); } else { player.push(String::from("yukiko")); } let mut cnt = 0; for i in 0..8 { for j in 0..8 { if b[i][j] != '.' { cnt += 1; } } } println!("{}", player[cnt % 2]) }