#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long n, m;
  cin >> n >> m;
  char s[n][m];
  bool util[n][m];
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      cin >> s[i][j];
      util[i][j] = false;
    }
  }
  vector<pair<long long, pair<long long, long long> > > res;
  for (long long i = 1; i < n - 1; i++) {
    for (long long j = 1; j < m - 1; j++) {
      long long sz = 0;
      long long temp = 0;
      long long k;
      if (s[i][j] != '*') {
        continue;
      }
      for (k = i + 1; k < n; k++) {
        if (s[k][j] != '*') {
          break;
        }
        temp++;
      }
      sz = temp;
      temp = 0;
      for (k = i - 1; k >= 0; k--) {
        if (s[k][j] != '*') {
          break;
        }
        temp++;
      }
      sz = min(sz, temp);
      temp = 0;
      for (k = j + 1; k < m; k++) {
        if (s[i][k] != '*') {
          break;
        }
        temp++;
      }
      sz = min(sz, temp);
      temp = 0;
      for (k = j - 1; k >= 0; k--) {
        if (s[i][k] != '*') {
          break;
        }
        temp++;
      }
      sz = min(sz, temp);
      if (sz == 0) continue;
      res.push_back(make_pair(sz, make_pair(i + 1, j + 1)));
      util[i][j] = true;
      temp = 0;
      for (k = i + 1; k < n; k++) {
        if (temp >= sz) {
          break;
        }
        util[k][j] = true;
        temp++;
      }
      temp = 0;
      for (k = i - 1; k >= 0; k--) {
        if (temp >= sz) {
          break;
        }
        util[k][j] = true;
        temp++;
      }
      temp = 0;
      for (k = j + 1; k < m; k++) {
        if (temp >= sz) {
          break;
        }
        util[i][k] = true;
        temp++;
      }
      temp = 0;
      for (k = j - 1; k >= 0; k--) {
        if (temp >= sz) {
          break;
        }
        util[i][k] = true;
        temp++;
      }
    }
  }
  long long ans = res.size();
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      if (s[i][j] == '*' && util[i][j] == false) {
        ans = -1;
        break;
      }
    }
  }
  cout << ans << endl;
  if (ans != -1) {
    for (long long i = 0; i < res.size(); i++) {
      cout << res[i].second.first << ' ' << res[i].second.second << ' '
           << res[i].first << endl;
    }
  }
  return 0;
}
