#include <bits/stdc++.h>
using namespace std;
string s;
long long x, y, n, v, p, i = 20, j, k, o = 1, m, mx, b, l = 1, r, pp, a[100001],
                         z, zs, zm, h;
int main() {
  cin >> s;
  n = s.size();
  v = n % 20;
  p = n / 20;
  if (n % 20 != 0) p++;
  if (n % 20 == 0 || p <= 1) {
    if (p <= 1) {
      cout << 1 << " " << n << endl << s;
    } else {
      cout << p << " " << 20 << endl;
      for (i = 1; i <= p; i++) {
        for (j = 1; j <= 20; j++) {
          cout << s[r];
          r++;
        }
        cout << endl;
      }
    }
    return 0;
  }
  x = n / p;
  if (n % p != 0) x++;
  y = p - n % p;
  if (y == p) y = 0;
  cout << p << " " << x << endl;
  for (i = 1; i <= p; i++) {
    k = 1;
    if (y > 0) {
      y--;
      cout << "*";
      k = 2;
    }
    for (j = k; j <= x; j++) {
      cout << s[r];
      r++;
    }
    cout << endl;
  }
}
