#include <bits/stdc++.h>
using namespace std;
int o[100][100];
int main() {
  long long n, m;
  vector<int> x, y, s;
  cin >> n >> m;
  string p[n];
  for (long long i = 0; i < n; ++i) {
    cin >> p[i];
  }
  for (long long i = 1; i < n - 1; ++i) {
    for (long long j = 1; j < m - 1; ++j) {
      if (p[i][j] == '.') continue;
      long long mx = 0;
      for (long long k = 1; k <= min(min(i, j), min(n - 1 - i, m - 1 - j));
           k++) {
        if (p[i + k][j] == '*' and p[i - k][j] == '*' and p[i][j + k] == '*' and
            p[i][j - k] == '*') {
          mx++;
          o[i + k][j] = 1;
          o[i - k][j] = 1;
          o[i][j + k] = 1;
          o[i][j - k] = 1;
          o[i][j] = 1;
        } else
          break;
      }
      if (mx == 0)
        continue;
      else {
        x.push_back(i + 1);
        y.push_back(j + 1);
        s.push_back(mx);
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < m; ++j) {
      if (p[i][j] == '*' and o[i][j] == 0) {
        cout << -1;
        return 0;
      }
    }
  }
  cout << x.size() << "\n";
  for (int i = 0; i < x.size(); ++i) {
    cout << x[i] << " " << y[i] << " " << s[i] << "\n";
  }
}
