#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m;
  cin >> n >> m;
  vector<string> vec;
  for (long long int i = 0; i < n; i++) {
    string a;
    cin >> a;
    vec.push_back(a);
  }
  vector<pair<pair<long long int, long long int>, long long int> > ans;
  vector<vector<long long int> > v(n, vector<long long int>(m, 1));
  for (long long int i = 0; i < n; i++) {
    for (long long int j = 0; j < m; j++) {
      if (vec[i][j] == '*') {
        long long int a = 0;
        for (long long int k = j + 1; k < m; k++) {
          if (vec[i][k] == '*')
            a++;
          else
            break;
        }
        long long int b = 0;
        for (long long int k = j - 1; k >= 0; k--) {
          if (vec[i][k] == '*')
            b++;
          else
            break;
        }
        long long int c = 0;
        for (long long int k = i + 1; k < n; k++) {
          if (vec[k][j] == '*')
            c++;
          else
            break;
        }
        long long int d = 0;
        for (long long int k = i - 1; k >= 0; k--) {
          if (vec[k][j] == '*')
            d++;
          else
            break;
        }
        long long int val = min(a, min(b, min(c, d)));
        bool bb1 = 0, bb2 = 0, bb3 = 0, bb4 = 0;
        if (val > 0) {
          ans.push_back({{i + 1, j + 1}, val});
          v[i][j] = 0;
          for (long long int k = j + 1; k < m && k <= j + val; k++) {
            v[i][k] = 0;
          }
          for (long long int k = j - 1; k >= 0 & k >= j - val; k--) {
            v[i][k] = 0;
          }
          for (long long int k = i + 1; k < n && k <= i + val; k++) {
            v[k][j] = 0;
          }
          for (long long int k = i - 1; k >= 0 && k >= i - val; k--) {
            v[k][j] = 0;
          }
        }
      }
    }
  }
  long long int size = ans.size();
  for (long long int i = 0; i < n; i++) {
    for (long long int j = 0; j < m; j++) {
      if (vec[i][j] == '*' && v[i][j] == 1) {
        cout << -1 << endl;
        return 0;
      }
    }
  }
  cout << size << endl;
  for (long long int i = 0; i < size; i++) {
    long long int a = ans[i].first.first;
    long long int b = ans[i].first.second;
    long long int c = ans[i].second;
    cout << a << " " << b << " " << c << endl;
  }
}
