#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int row = ceil(float(n) / 20);
  int col = ceil(float(n) / row);
  vector<string> v;
  int stars = row * col - n;
  int j = 0;
  for (int i = 0; i < row; i++) {
    if (i >= row - stars) {
      string str = s.substr(j, col - 1);
      str += "*";
      v.push_back(str);
      j += col - 1;
    } else {
      string str = s.substr(j, col);
      v.push_back(str);
      j += col;
    }
  }
  cout << row << " " << col << endl;
  for (int i = 0; i < row; i++) {
    cout << v[i] << endl;
  }
}
