#include <bits/stdc++.h>
using namespace std;
int main() {
  string name;
  int rows, asRowI, asterisk, remAsterisk, j, k, asPerRow, column;
  cin >> name;
  if (name.length() <= 20) {
    cout << 1 << ' ' << name.length() << endl;
    cout << name << endl;
  } else {
    if (name.length() % 20 == 0) {
      rows = name.length() / 20;
    } else {
      rows = name.length() / 20 + 1;
    }
    column = 1;
    while (column * rows < name.length()) column++;
    if (name.length() % column == 0) {
      asterisk = 0;
    } else
      asterisk = column - (name.length() % column);
    asPerRow = asterisk / rows;
    remAsterisk = asterisk % rows;
    j = 0;
    cout << rows << ' ' << column << endl;
    for (int i = 1; i <= rows; i++) {
      if (i <= remAsterisk) {
        asRowI = asPerRow + 1;
      } else {
        asRowI = asPerRow;
      }
      for (int k = 1; k <= column; k++) {
        if (k <= asRowI) {
          cout << '*';
        } else {
          cout << name[j];
          j++;
        }
      }
      cout << endl;
    }
  }
}
