#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  string n;
  cin >> n;
  for (long long int i = 1; i <= 5; i++) {
    long long int c = (n.size() + i - 1) / i;
    if (c <= 20) {
      cout << i << " " << c << "\n";
      long long int as = i * c - n.size();
      long long int ar = as / i, ae = as % i;
      long long int len = 0;
      for (long long int j = 0; j < i; j++) {
        for (long long int k = 0; k < ar; k++) cout << "*";
        for (long long int k = ar; k < c - (ae > 0); k++) cout << n[len++];
        if (ae) cout << "*", ae--;
        cout << "\n";
      }
      return 0;
    }
  }
}
