#include <bits/stdc++.h>
int a[100000];
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 1; i <= 5; ++i) {
    for (int j = 1; j <= 20; ++j) {
      if (i * j >= n) {
        cout << min(i, j) << " " << max(i, j) << endl;
        int y = i * j - n, x = 0;
        for (int h = 0; h < min(i, j); h++) {
          for (int k = 0; k < max(i, j); ++k) {
            if (k + 1 != max(i, j) || y == 0) {
              cout << s[x];
              x++;
            } else if (y > 0) {
              cout << "*";
              y--;
            }
          }
          cout << endl;
        }
        return 0;
      }
    }
  }
}
