#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int l, a = 1, b, k, p = 0;
  cin >> s;
  l = s.size();
  b = l;
  while (b > 20) {
    a++;
    b = l / a;
    if (l % a != 0) b = b + 1;
  }
  k = a * b - l;
  cout << a << " " << b << endl;
  for (int j = 0; j < l; j++) {
    cout << s[j];
    p++;
    if ((p == b - 1) && (k > 0)) {
      cout << "*";
      k--;
      p++;
    }
    if (p == b) {
      cout << endl;
      p = 0;
    }
  }
  return 0;
}
