#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int star = 0;
  for (int i = 1; i <= 5; ++i) {
    for (int j = 1; j <= 20; ++j) {
      if (i * j >= (int)s.size()) {
        cout << i << " " << j << endl;
        star = abs(i * j - (int)s.size());
        int p = 0;
        while (p < s.size()) {
          if (star) {
            cout << "*" << s.substr(p, j - 1);
            p += j - 1;
            star--;
          } else {
            cout << s.substr(p, j);
            p += j;
          }
          cout << endl;
        }
        return 0;
      }
    }
  }
  return 0;
}
