(let* [[s1 (read-line)][s2 (read-line)][s3 (read-line)]] (print (if (or (and (string=? s1 "#.#") (string=? s2 ".#.") (string=? s3 "#.#")) (and (string=? s1 ".#.") (string=? s2 "#.#") (string=? s3 ".#."))) 'Yes 'No)))