#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int i = 1, b = 0;
  while (s.size() / i + b > 20) {
    i++;
    if (s.size() % i > 0) {
      b = 1;
    } else {
      b = 0;
    }
  }
  cout << i << " " << s.size() / i + b << endl;
  int k = s.size() / i + b;
  int ost;
  if (s.size() % i == 0) {
    ost = 0;
  } else {
    ost = i - s.size() % i;
  }
  int j = 0;
  string h = "";
  for (int i = 0; i < s.size(); i++) {
    if (j == k && ost > 0) {
      h += "*";
      h += s[i];
      j = 0;
      ost--;
    } else {
      h += s[i];
    }
    j++;
  }
  k = h.size() / i;
  j = 1;
  for (int i = 0; i < h.size(); i++) {
    if (j == k) {
      cout << h[i] << endl;
      j = 0;
    } else {
      cout << h[i];
    }
    j++;
  }
  return 0;
}
