#include <bits/stdc++.h>
int main() {
  int a = 0, b = 0, n = 0;
  std::string text;
  std::string zvesd = "*";
  std::cin >> text;
  n = text.size();
  int x = (n + 19) / 20;
  int l = (n / x);
  int r = n - l * x;
  int p = x - r;
  int y = (n + x - 1) / x;
  if (r != 0)
    for (int i = p - 1; i >= 0; i--) {
      text.insert(20 * i + l, zvesd);
    }
  std::cout << x << " " << y << "\n";
  for (int i = 0; i < text.size(); i++) {
    std::cout << text[i];
    if ((i + 1) % (y) == 0) std::cout << "\n";
  }
  return 0;
}
