#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7;
int main() {
  int a[150], n, k, x, mx = 0;
  string s;
  getline(cin, s);
  if (s.length() <= 20)
    cout << 1 << ' ' << s.length() << endl << s;
  else {
    int ks, kb, kost, kb1;
    ks = s.length() / 20;
    if (s.length() % 20 != 0) ks++;
    kb = s.length() / ks;
    if (s.length() % ks != 0) {
      kb++;
      kost = s.length() % ks;
    }
    cout << ks << ' ' << kb << endl;
    int la = 0, len = s.length();
    for (int j = 1; j <= ks; j++) {
      kb1 = len / (ks - j + 1);
      for (int i = la; i <= la + kb1 - 1; i++) cout << s[i];
      if (kb1 < kb) cout << '*';
      cout << endl;
      la += kb1;
      len -= kb1;
    }
  }
  return 0;
}
