#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  string ma[2001];
  string inn, tech = "", ph;
  long long mh = 0, st = 1;
  cin >> inn;
  ph = inn;
  for (long long i = inn.size() / 20 + (long long)(bool)(inn.size() % 20);
       i >= 1; i--) {
    ma[i] = ph.substr(0, ph.size() / i);
    tech = "";
    for (long long j = ph.size() / i; j < ph.size(); j++) {
      tech += ph[j];
    }
    ph = tech;
  }
  for (long long i = 5; i >= 1; i--) {
    if (ma[i].size() != 0) {
      st = max(st, i);
    }
    if (ma[i].size() > mh) mh = ma[i].size();
  }
  cout << st << " " << mh << endl;
  for (long long i = st; i >= 1; i--) {
    cout << ma[i];
    for (long long j = 1; j <= mh - ma[i].size(); j++) cout << "*";
    cout << endl;
  }
  return 0;
}
