fn main() { let mut ccc: Vec> = vec![]; for _ in 0..3 { let mut line = String::new(); std::io::stdin().read_line(&mut line).unwrap(); ccc.push(line.trim().chars().collect()); } let bit: u32 = (0..9) .map(|i| if ccc[i / 3][i % 3] == '#' { 1 << i } else { 0 }) .sum(); println!( "{}", if bit == 170 || bit == 341 { "Yes" } else { "No" } ); }