{"raw_statement":[{"iden":"problem statement","content":"Takahashi generated $10$ strings $S_1,S_2,\\dots,S_{10}$ as follows.\n\n*   First, let $S_i (1 \\le i \\le 10)=$ `..........` ($10$ `.`s in a row).\n*   Next, choose four integers $A$, $B$, $C$, and $D$ satisfying all of the following.\n    *   $1 \\le A \\le B \\le 10$.\n    *   $1 \\le C \\le D \\le 10$.\n*   Then, for every pair of integers $(i,j)$ satisfying all of the following, replace the $j$\\-th character of $S_i$ with `#`.\n    *   $A \\le i \\le B$.\n    *   $C \\le j \\le D$.\n\nYou are given $S_1,S_2,\\dots,S_{10}$ generated as above. Find the integers $A$, $B$, $C$, and $D$ Takahashi chose.  \nIt can be proved that such integers $A$, $B$, $C$, and $D$ uniquely exist (there is just one answer) under the Constraints."},{"iden":"constraints","content":"*   $S_1,S_2,\\dots,S_{10}$ are strings, each of length $10$, that can be generated according to the Problem Statement."},{"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_{10}$"},{"iden":"sample input 1","content":"..........\n..........\n..........\n..........\n...######.\n...######.\n...######.\n...######.\n..........\n.........."},{"iden":"sample output 1","content":"5 8\n4 9\n\nHere, Takahashi chose $A=5$, $B=8$, $C=4$, $D=9$.  \nThis choice generates $10$ strings $S_1,S_2,\\dots,S_{10}$, each of length $10$, where the $4$\\-th through $9$\\-th characters of $S_5,S_6,S_7,S_8$ are `#`, and the other characters are `.`.  \nThese are equal to the strings given in the input."},{"iden":"sample input 2","content":"..........\n..#.......\n..........\n..........\n..........\n..........\n..........\n..........\n..........\n.........."},{"iden":"sample output 2","content":"2 2\n3 3"},{"iden":"sample input 3","content":"##########\n##########\n##########\n##########\n##########\n##########\n##########\n##########\n##########\n##########"},{"iden":"sample output 3","content":"1 10\n1 10"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}