using System; public class Hello { static void Main() { var s = new string[3]; for (int i = 0; i < 3; i++) s[i] = Console.ReadLine().Trim(); getAns(s); } static void getAns(string[] s) { Console.WriteLine((check1(s) | check2(s)) ? "Yes" : "No"); } static bool check2(string[] s) { var t = new string[] { ".#.", "#.#", ".#." }; for (int i = 0; i < 3; i++) { if (s[i] != t[i]) return false; } return true; } static bool check1(string[] s) { var t = new string[] { "#.#", ".#.", "#.#" }; for (int i = 0; i < 3; i++) { if (s[i] != t[i]) return false; } return true; } }