#include <bits/stdc++.h>
using namespace std;
string s;
long long int hang, hang1, maxn, lie1, lie2, jsq, jsq2, i;
int main() {
  cin >> s;
  maxn = s.length();
  hang1 = maxn % 20;
  if (hang1) {
    hang = maxn / 20;
    hang++;
  } else {
    hang = maxn / 20;
  }
  lie1 = maxn % hang;
  lie2 = maxn / hang;
  if (lie1) {
    lie2++;
    lie1 = hang - lie1;
  }
  cout << hang << " " << lie2 << endl;
  for (i = 0;;) {
    if (jsq >= lie2) {
      cout << endl;
      jsq = 0;
      jsq2++;
      if (jsq2 >= hang) {
        break;
      }
      continue;
    }
    if (lie1 && !jsq) {
      cout << "*";
      lie1--;
      jsq++;
      continue;
    } else {
      cout << s[i];
      i++;
      jsq++;
    }
  }
}
