#include <bits/stdc++.h>
using namespace std;
int main() {
  double row, column, asterisk, len, loop;
  int i, j = 0;
  char handle[101];
  cin >> handle;
  len = strlen(handle);
  row = ceil(len / 20);
  column = ceil(len / row);
  asterisk = ((row * column) - len);
  cout << row << " " << column << endl;
  for (loop = 0; loop < row; loop++) {
    i = 0;
    if (asterisk != 0) {
      cout << "*";
      i++;
      asterisk--;
    }
    for (; i < column; j++, i++) {
      cout << handle[j];
    }
    cout << endl;
  }
}
