#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int x = (s.length() - 1) / 20 + 1;
  int ost = x * 20 - s.length();
  int y = 0;
  while (ost >= x) ost -= x, y++;
  cout << x << " " << 20 - y << endl;
  int now = 0;
  for (int i = 1; i <= x; i++) {
    string ans = "";
    if (ost > 0) ost--, ans += '*';
    while (now < s.length() && ans.length() < 20 - y) {
      ans += s[now];
      now++;
    }
    cout << ans << endl;
  }
  return 0;
}
