#include <bits/stdc++.h>
using namespace std;
string s;
int n, ind;
int main() {
  cin >> s;
  n = s.size();
  s = ' ' + s;
  for (int i = 1; i <= 5; i++) {
    for (int j = 1; j <= 20; j++) {
      if (i * j >= n) {
        cout << i << " " << j << endl;
        int x = (i * j - n) / i;
        int c1 = (i * j - n) % i;
        for (int k = 1; k <= i; k++) {
          for (int l = 0; l < j - x - (c1 > 0); l++) cout << s[++ind];
          for (int l = 0; l < x + (c1 > 0); l++) cout << "*";
          c1--;
          cout << endl;
        }
        return 0;
      }
    }
  }
}
