#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int len = s.length();
  int a, b, mod;
  for (int i = 20; i >= 1; i--) {
    b = len / i;
    if (b != 0) {
      mod = len % i;
      if (mod != 0) {
        mod = i - mod;
      }
      if (mod <= b) {
        a = i;
        break;
      }
    }
  }
  int flag = 0;
  if (mod != 0) {
    b++;
  }
  cout << b << " " << a << endl;
  for (int i = 0; i < len; i++) {
    cout << s[i];
    flag++;
    if (mod > 0 && flag == a - 2) {
      cout << '*';
      flag++;
      mod--;
    }
    if (flag == a) {
      cout << endl;
      flag = 0;
    }
  }
  return 0;
}
