#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  float dc = s.size();
  int l = dc, r;
  for (r = 1; dc > 20; r++) dc = 1.0 * l / r;
  int c = dc;
  r == 1 ? r : r--;
  int lr = l % r, sp = 0;
  int dlr = lr;
  cout << r << " " << (lr == 0 ? c : c + 1) << endl;
  for (int j = 0; j < r; j++) {
    if (lr > 0) {
      cout << s.substr(sp, c + 1) << endl;
      sp += c + 1;
    } else if (dlr) {
      cout << s.substr(sp, c) << "*" << endl;
      sp += c;
    } else {
      cout << s.substr(sp, c) << endl;
      sp += c;
    }
    lr--;
  }
}
