#include <bits/stdc++.h>
inline int sbt(int x) { return __builtin_popcount(x); }
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cout << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cout.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
int main() {
  cin.sync_with_stdio(false);
  cout.sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  int rows = (n - 1) / 20 + 1;
  int cols = (n - 1) / rows + 1;
  int asterisks = rows * cols - n;
  int row_star[rows + 13];
  memset(row_star, 0, sizeof row_star);
  for (int i = 0; i < rows; i++) {
    row_star[i] = asterisks / rows;
  }
  cout << rows << ' ' << cols << endl;
  int i = 0;
  for (int j = 0; j < rows; j++) {
    if (j < (asterisks % rows)) row_star[j]++;
    int tmp = row_star[j];
    while (row_star[j]) {
      row_star[j]--;
      cout << "*";
    }
    for (int k = 0; k < cols - tmp; k++) {
      cout << s[i++];
    }
    cout << endl;
  }
  return 0;
}
