#include <bits/stdc++.h>
using namespace std;
string s;
int ii, jj, stars, allStars, firstIStars, sI;
int main() {
  cin >> s;
  ii = s.size() / 20;
  if (s.size() % 20) ii++;
  jj = s.size() / ii;
  if (s.size() % ii) jj++;
  stars = ii * jj - s.size();
  allStars = stars / ii;
  firstIStars = stars % ii;
  cout << ii << ' ' << jj << '\n';
  for (int i = 0; i < ii; i++) {
    int currStars = allStars;
    if (i < firstIStars) currStars++;
    for (int j = 0; j < jj; j++) {
      if (currStars > 0) {
        currStars--;
        cout << '*';
        continue;
      }
      cout << s[sI];
      sI++;
    }
    cout << '\n';
  }
}
