function Main(input) { const src = input.split("\n"); src.pop(); const a = ["#.#", ".#.", "#.#"].toString(); const b = [".#.", "#.#", ".#."].toString(); const c = [...src].toString(); console.log((a == c || b == c) ? "Yes" : "No"); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));