#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, q, n, a, pr, sum, b, z, m;
  string s;
  cin >> s;
  q = s.size();
  if (s.size() % 20 == 0)
    a = s.size() / 20;
  else
    a = s.size() / 20 + 1;
  if (q % a == 0)
    b = q / a;
  else
    b = q / a + 1;
  z = a * b - q;
  n = 0;
  cout << a << " " << b << endl;
  for (i = 0; i < a; i++) {
    m = b;
    if (z > 0) {
      cout << "*";
      m--;
      z--;
    }
    for (j = 0; j < m; j++) {
      if (j == m - 1)
        cout << s[n] << endl;
      else
        cout << s[n];
      n++;
    }
  }
  return 0;
}
