#include <bits/stdc++.h>
using namespace std;
string s;
void canfit(int row, int col) {
  int stars = (row * col) - s.length();
  int perrow = stars / row;
  int left = stars % row;
  int check = 0;
  for (int i = 0; i < s.length(); i++) {
    if (check == 0) {
      if (left > 0) {
        std::cout << '*';
        check++;
        left--;
      }
      for (int j = 1; j <= perrow; j++) {
        std::cout << '*';
        check++;
      }
    }
    std::cout << s[i];
    check++;
    if (check == col) {
      check = 0;
      std::cout << endl;
    }
  }
}
int main() {
  cin >> s;
  if (s.length() <= 20) {
    std::cout << 1 << " " << s.length() << endl;
    std::cout << s;
    return 0;
  }
  for (int i = 1; i <= 5; i++) {
    for (int j = 1; j <= 20; j++) {
      if (i * j >= s.length()) {
        std::cout << i << " " << j << endl;
        canfit(i, j);
        return 0;
      }
    }
  }
}
