Scanf.scanf "%s %s %s" (fun s1 s2 s3 -> let s = s1 ^ s2 ^ s3 in print_endline @@ if s = "#.#.#.#.#" || s = ".#.#.#.#." then "Yes" else "No" )