{"raw_statement":[{"iden":"problem statement","content":"There is a two-dimensional plane. For integers $r$ and $c$ between $1$ and $9$, there is a pawn at the coordinates $(r,c)$ if the $c$\\-th character of $S_{r}$ is `#`, and nothing if the $c$\\-th character of $S_{r}$ is `.`.\nFind the number of squares in this plane with pawns placed at all four vertices."},{"iden":"constraints","content":"*   Each of $S_1,\\ldots,S_9$ is a string of length $9$ consisting of `#` and `.`."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$S_1$\n$S_2$\n$\\vdots$\n$S_9$"},{"iden":"sample input 1","content":"##.......\n##.......\n.........\n.......#.\n.....#...\n........#\n......#..\n.........\n........."},{"iden":"sample output 1","content":"2\n\nThe square with vertices $(1,1)$, $(1,2)$, $(2,2)$, and $(2,1)$ have pawns placed at all four vertices.\nThe square with vertices $(4,8)$, $(5,6)$, $(7,7)$, and $(6,9)$ also have pawns placed at all four vertices.\nThus, the answer is $2$."},{"iden":"sample input 2","content":".#.......\n#.#......\n.#.......\n.........\n....#.#.#\n.........\n....#.#.#\n........#\n........."},{"iden":"sample output 2","content":"3"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}