#include <bits/stdc++.h>
using namespace std;
bool checkStar(vector<string> &grelha, int row, int column) {
  if ((grelha[row + 1][column] == '*' || grelha[row + 1][column] == '-') &&
      (grelha[row - 1][column] == '*' || grelha[row - 1][column] == '-') &&
      (grelha[row][column + 1] == '*' || grelha[row][column + 1] == '-') &&
      (grelha[row][column - 1] == '*' || grelha[row][column - 1] == '-'))
    return true;
  else
    return false;
}
bool starSize(vector<string> &grelha, int row, int column, int size) {
  for (int i = row - size; i <= row + size; i++) {
    for (int j = column - size; j <= column + size; j++)
      if (i >= 0 && i < grelha.size() && j >= 0 && j < grelha[0].size()) {
        if ((i == row || j == column) &&
            (grelha[i][j] != '*' && grelha[i][j] != '-'))
          return false;
      } else {
        return false;
      }
  }
  for (int i = row - size; i <= row + size; i++) {
    for (int j = column - size; j <= column + size; j++)
      if ((i == row || j == column)) grelha[i][j] = '-';
  }
  return true;
}
int main() {
  int row, column;
  cin >> row >> column;
  vector<int> starPosition;
  vector<string> grelha(row);
  for (int i = 0; i < row; i++) cin >> grelha[i];
  for (int i = 1; i < row - 1; i++) {
    for (int j = 1; j < column - 1; j++)
      if ((grelha[i][j] == '*' || grelha[i][j] == '-') &&
          checkStar(grelha, i, j) == 1) {
        int size = 1;
        while (starSize(grelha, i, j, size) == true) {
          size++;
        }
        starPosition.push_back(i + 1);
        starPosition.push_back(j + 1);
        starPosition.push_back(size - 1);
      }
  }
  for (int i = 0; i < row; i++) {
    for (int j = 0; j < column; j++)
      if (grelha[i][j] == '*') {
        cout << -1 << endl;
        return 0;
      }
  }
  int pos = 0;
  cout << (starPosition.size() / 3) << endl;
  for (int i = 0; i < (starPosition.size() / 3); i++) {
    cout << starPosition[pos] << " " << starPosition[pos + 1] << " "
         << starPosition[pos + 2] << endl;
    pos += 3;
  }
  return 0;
}
