#[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 { let mut l = 9; let mut r = 0; for j in 0..8 { if b[i][j] == 'w' || b[i][j] == 'b' { l = l.min(j); r = r.max(j); } } if l < 9 { cnt += r - l + 1; } } println!("{}", player[cnt % 2]) }