#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int size = s.size();
  int h = (size - 1) / 20 + 1;
  int l1 = size / h;
  int l2 = (h - size % l1) % h;
  int p = l2;
  int t = 0;
  int l = l2 > 0 ? l1 + 1 : l1;
  cout << h << ' ' << l << '\n';
  for (int i = 0; i < p && t < size; ++i) {
    for (int j = 0; j < l1; ++j) cout << s[t++];
    if (--l2 >= 0) cout << '*';
    cout << "\n";
  }
  while (t < size) {
    for (int j = 0; j < l; ++j) cout << s[t++];
    cout << '\n';
  }
}
