#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, vis[110][110];
  cin >> x >> y;
  string s[110];
  vector<pair<pair<int, int>, int>> ans;
  for (int i = 0; i < x; i++) cin >> s[i];
  for (int i = 0; i < x; i++) {
    for (int j = 0; j < y; j++) {
      if (s[i][j] == '*') {
        int t = 1;
        while (i >= t && i + t < x && j >= t && j + t < y &&
               s[i - t][j] == '*' && s[i + t][j] == '*' && s[i][j - t] == '*' &&
               s[i][j + t] == '*') {
          vis[i][j] = 1, vis[i][j + t] = 1, vis[i][j - t] = 1,
          vis[i + t][j] = 1, vis[i - t][j] = 1, t++;
        }
        if (t > 1) ans.push_back(make_pair(make_pair(i + 1, j + 1), t - 1));
      }
    }
  }
  for (int i = 0; i < x; i++) {
    for (int j = 0; j < y; j++) {
      if (s[i][j] == '*' && !vis[i][j]) {
        cout << -1;
        return 0;
      }
    }
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++)
    cout << ans[i].first.first << ' ' << ans[i].first.second << ' '
         << ans[i].second << endl;
}
