Croc Champ 2012 - Round 2 (Unofficial Div. 2 Edition)
A
Series of Crimes
Codeforces
800
原题
←B →
翻译中…

The Berland capital is shaken with three bold crimes committed by the Pihsters, a notorious criminal gang.

翻译中…

The Berland capital's map is represented by an $*n* × *m*$ rectangular table. Each cell of the table on the map represents some districts of the capital.

翻译中…

The capital's main detective Polycarpus took a map and marked there the districts where the first three robberies had been committed as asterisks. Deduction tells Polycarpus that the fourth robbery will be committed in such district, that all four robbed districts will form the vertices of some rectangle, parallel to the sides of the map.

翻译中…

Polycarpus is good at deduction but he's hopeless at math. So he asked you to find the district where the fourth robbery will be committed.

翻译中…

Input

翻译中…

The first line contains two space-separated integers $*n*$ and $*m*$ ($2 ≤ *n*, *m* ≤ 100$) — the number of rows and columns in the table, correspondingly.

翻译中…

Each of the next $*n*$ lines contains $*m*$ characters — the description of the capital's map. Each character can either be a "." (dot), or an "*" (asterisk). A character equals "*" if the corresponding district has been robbed. Otherwise, it equals ".".

翻译中…

It is guaranteed that the map has exactly three characters "*" and we can always find the fourth district that meets the problem requirements.

翻译中…

Output

翻译中…

Print two integers — the number of the row and the number of the column of the city district that is the fourth one to be robbed. The rows are numbered starting from one from top to bottom and the columns are numbered starting from one from left to right.

翻译中…

样例

Input #1
3 2
.*
..
**
Output #1
1 1
InputCopy OutputCopy
Input #2
3 3
*.*
*..
...
Output #2
2 3
InputCopy OutputCopy
题目信息
题号
181A
时间限制
2 s
内存限制
256 MB
标签
暴力
计算几何
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。