#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  string s;
  cin >> s;
  int len = s.length();
  a = len / 20;
  if (len % 20) {
    a++;
  }
  b = len / a;
  if (len % a) {
    b++;
  }
  vector<int> A(a, 0);
  int t = a * b - len;
  for (int i = 0; i < t; i++) {
    A[i] = 1;
  }
  vector<vector<char>> ans(a, vector<char>(b, ' '));
  int q = 0;
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b - A[i]; j++) {
      ans[i][j] = s[q];
      q++;
    }
    for (int j = b - A[i]; j < b; j++) {
      ans[i][j] = '*';
    }
  }
  cout << a << " " << b << '\n';
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      cout << ans[i][j];
    }
    cout << '\n';
  }
}
