#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  cin >> m >> n;
  pair<int, int> P;
  vector<pair<int, int>> V;
  char arr[m][n];
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < n; j++) {
      cin >> arr[i][j];
    }
  }
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < n; j++) {
      if (arr[i][j] == '*') V.push_back({i, j});
    }
  }
  if (V[0].first - V[1].first == 0 && V[2].second != V[1].second) {
    P.first = V[2].first + 1;
    P.second = V[1].second + 1;
  } else if (V[0].first - V[1].first == 0 && V[2].second == V[1].second) {
    P.first = V[2].first + 1;
    P.second = V[0].second + 1;
  } else if (V[1].first - V[2].first == 0 && V[0].second == V[1].second) {
    P.first = V[0].first + 1;
    P.second = V[2].second + 1;
  } else if (V[1].first - V[2].first == 0 && V[0].second != V[1].second) {
    P.first = V[0].first + 1;
    P.second = V[1].second + 1;
  }
  cout << P.first << " " << P.second;
  return 0;
}

### Prompt

Create a solution in CPP for the following problem:

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.

Examples

Input

3 2
.*
..
**


Output

1 1


Input

3 3
*.*
*..
...


Output

2 3

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  cin >> m >> n;
  pair<int, int> P;
  vector<pair<int, int>> V;
  char arr[m][n];
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < n; j++) {
      cin >> arr[i][j];
    }
  }
  for (int i = 0; i < m; i++) {
    for (int j = 0; j < n; j++) {
      if (arr[i][j] == '*') V.push_back({i, j});
    }
  }
  if (V[0].first - V[1].first == 0 && V[2].second != V[1].second) {
    P.first = V[2].first + 1;
    P.second = V[1].second + 1;
  } else if (V[0].first - V[1].first == 0 && V[2].second == V[1].second) {
    P.first = V[2].first + 1;
    P.second = V[0].second + 1;
  } else if (V[1].first - V[2].first == 0 && V[0].second == V[1].second) {
    P.first = V[0].first + 1;
    P.second = V[2].second + 1;
  } else if (V[1].first - V[2].first == 0 && V[0].second != V[1].second) {
    P.first = V[0].first + 1;
    P.second = V[1].second + 1;
  }
  cout << P.first << " " << P.second;
  return 0;
}

```