#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  string s;
  cin >> s;
  n = s.size();
  long long i = 1;
  while (i < 6) {
    if (i * 20 >= n) {
      cout << i << " " << (n + i - 1) / i << "\n";
      for (long long j = 0; j < (n - 1) % i + 1; j++) {
        for (long long k = 0; k < (n + i - 1) / i; k++) {
          cout << s[j * ((n + i - 1) / i) + k];
        }
        cout << "\n";
      }
      for (long long j = (n - 1) % i + 1; j < i; j++) {
        for (long long k = 0; k < (n + i - 1) / i - 1; k++) {
          cout << s[((n - 1) % i + 1) * ((n + i - 1) / i) +
                    (j - (n - 1) % i - 1) * ((n + i - 1) / i - 1) + k];
        }
        cout << "*\n";
      }
      return 0;
    } else {
      i++;
    }
  }
  return 0;
}
