#include <bits/stdc++.h>
using namespace std;
int n, k, a[1000], h[1000];
int main() {
  int y[10];
  int g = 0;
  char s[1000];
  int a, b;
  cin >> s;
  int l = strlen(s);
  a = l % 20 == 0 ? l / 20 : l / 20 + 1;
  b = l % a == 0 ? l / a : l / a + 1;
  int c = a * b - l;
  cout << a << " " << b << "\n";
  for (int i = 0; i < a; ++i) {
    for (int j = 0; j < b; ++j) {
      if (j == b - 1 && c > 0) {
        cout << "*";
        --c;
      } else {
        cout << s[g];
        ++g;
      }
    }
    cout << "\n";
  }
  return 0;
}
