#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m;
  cin >> n >> m;
  vector<string> v(n);
  for (string &i : v) cin >> i;
  vector<vector<long long>> ans;
  for (long long i = 1; i < n - 1; ++i) {
    for (long long j = 1; j < m - 1; ++j) {
      long long minm = 1e18;
      long long cnt = 0;
      if (v[i][j] == '.') continue;
      for (long long k = i - 1; k >= 0; k--) {
        if (v[k][j] == '.') break;
        cnt++;
      }
      minm = min(cnt, minm);
      cnt = 0;
      for (long long k = i + 1; k < n; k++) {
        if (v[k][j] == '.') break;
        cnt++;
      }
      minm = min(minm, cnt);
      cnt = 0;
      for (long long k = j - 1; k >= 0; k--) {
        if (v[i][k] == '.') break;
        cnt++;
      }
      minm = min(cnt, minm);
      cnt = 0;
      for (long long k = j + 1; k < m; k++) {
        if (v[i][k] == '.') break;
        cnt++;
      }
      minm = min(minm, cnt);
      if (minm > 0 && minm < 1e18) {
        ans.push_back({i, j, minm});
      }
    }
  }
  vector<string> my(n);
  for (long long i = 0; i < n; ++i)
    for (long long j = 0; j < m; ++j) my[i].push_back('.');
  for (vector<long long> i : ans) {
    my[i[0]][i[1]] = '*';
    for (long long k = 1; k <= i[2]; k++) {
      my[i[0] - k][i[1]] = '*';
      my[i[0] + k][i[1]] = '*';
      my[i[0]][i[1] - k] = '*';
      my[i[0]][i[1] + k] = '*';
    }
  }
  for (long long i = 0; i < n; ++i)
    for (long long j = 0; j < m; ++j)
      if (v[i][j] != my[i][j]) {
        cout << "-1\n";
        return 0;
      }
  cout << ans.size() << "\n";
  for (vector<long long> i : ans) {
    cout << i[0] + 1 << " " << i[1] + 1 << " " << i[2] << "\n";
  }
  return 0;
}
