#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  string str;
  cin >> str;
  int len = str.length();
  int row = ceil((double)len / 20);
  int col = ceil((double)len / row);
  int as = row * col - len;
  for (int i = 0; i < as; ++i) str.insert(col * i, "*");
  cout << row << " " << col << endl;
  for (int i = 1; i <= row; ++i) cout << str.substr((i - 1) * col, col) << endl;
  return 0;
}
