#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int len = s.size();
  int r = len / 20 + (len % 20 != 0);
  int c = (len / r) + (len % r != 0);
  cout << r << " " << c << "\n";
  int idx = 0;
  int stars = r * c - len;
  for (int i = 0; i < r; i++) {
    for (int j = 0; j < c; j++) {
      if (j == 0 && stars-- > 0)
        cout << "*";
      else
        cout << s[idx++];
    }
    cout << "\n";
  }
}
