#include <bits/stdc++.h>
using namespace std;
int main() {
  string nameplate;
  while (cin >> nameplate) {
    int len = nameplate.length();
    int row = len / 20;
    if (len % 20 != 0) {
      row++;
    }
    int column = len / row;
    int remain = (row - (len - column * row)) % row;
    int idx = 0, k, flag = (remain == 0 ? 0 : 1);
    cout << row << " " << (column + flag) << endl;
    for (int i = 1; i <= row; i++) {
      if (remain > 0) {
        cout << "*";
        remain--;
      }
      for (k = idx; k < idx + column; k++) {
        cout << nameplate[k];
      }
      cout << endl;
      idx = k;
      if (flag && remain == 0) {
        column++;
        flag = 0;
      }
    }
  }
  return 0;
}
