fn main() { proconio::input!{ n: usize, s: [String;n], } let mut ok=true; for ss in s { ok^=ss=="No"; println!("{}", match ok { true => "Yes", _ => "No", }); } }