#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e15;
const long double EPS = 1e-9;
const long long MOD = 1e9 + 7;
const long long P = 2017;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  long long n = s.size();
  if (s.size() <= 20) {
    cout << 1 << " " << s.size() << endl;
    cout << s;
    return 0;
  }
  long long need = (n + 19) / 20;
  long long count_col = 0;
  if (n % need == 0) {
    count_col = n / need;
  } else {
    count_col = n / need + 1;
  }
  long long col = n % need;
  if (col != 0) {
    col = need - col;
  }
  long long ind = 0;
  cout << need << " " << count_col << endl;
  for (long long i = 0; i < need; i++) {
    if (i < col) {
      for (long long j = 0; j < count_col - 1; j++) {
        cout << s[ind];
        ind++;
      }
      cout << '*' << endl;
    } else {
      for (long long j = 0; j < count_col; j++) {
        cout << s[ind];
        ind++;
      }
      cout << endl;
    }
  }
}
