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