#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long a = (s.size() + 20 - 1) / 20;
  long long b = (s.size() + a - 1) / a;
  long long c = a * b - s.size();
  vector<string> ans(a);
  for (long long i = 0; i < c; i++) {
    ans[i].push_back('*');
  }
  cout << a << ' ' << b << "\n";
  long long now = 0;
  for (long long i = 0; i < a; i++) {
    for (long long j = ans[i].size(); j < b; j++, now++) {
      ans[i].push_back(s[now]);
    }
  }
  for (long long i = 0; i < a; i++) {
    for (long long j = 0; j < b; j++) {
      cout << ans[i][j];
    }
    cout << endl;
  }
  return 0;
}
