#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int mrow = n / 20;
  if (n % 20 != 0) mrow++;
  int mcol = n / mrow;
  if (n % mrow != 0) mcol++;
  int total = mrow * mcol;
  int star = total - n;
  int start = 0;
  cout << mrow << " " << mcol << endl;
  for (int i = 0; i < mrow; i++) {
    if (star > 0) {
      cout << "*";
      star--;
      for (int j = 1; j < mcol; j++) {
        cout << s[start];
        start++;
      }
      cout << endl;
    } else {
      for (int j = 0; j < mcol; j++) {
        cout << s[start];
        start++;
      }
      cout << endl;
    }
  }
}
