#include <bits/stdc++.h>
int a = 5, b = 20;
using namespace std;
int main() {
  string s;
  cin >> s;
  int aa = (s.size() + b - 1) / b;
  for (int i = aa; i < a + 1; i++) {
    int bb = (s.size() + i - 1) / i;
    for (int j = bb; j < b + 1; b++) {
      int stars = i * j - s.size();
      if (stars <= i * (i + 1) / 2) {
        cout << i << ' ' << j << endl;
        vector<int> help(i, 0);
        int h = 0;
        for (int k = 0; k < stars; k++) {
          help[h] += 1;
          h = (h + 1) % i;
        }
        int last = 0;
        for (int k = 0; k < i; k++) {
          cout << s.substr(last, j - help[k]);
          last += j - help[k];
          for (int f = 0; f < help[k]; f++) {
            cout << "*";
          }
          cout << endl;
        }
        return 0;
      }
    }
  }
  return 0;
}
