#include <bits/stdc++.h>
using namespace std;
string st;
int x, n, y;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> st;
  n = st.size();
  for (int i = 1; i < 6; ++i) {
    if (i * 20 >= n) {
      x = i;
      break;
    }
  }
  y = (n + x - 1) / x;
  cout << x << " " << y << endl;
  for (int i = 0; i < x; ++i) {
    int s = n / (x - i);
    for (int j = 0; j < s; ++j) {
      cout << st[0];
      st.erase(st.begin());
    }
    for (int j = s; j < y; ++j) {
      cout << "*";
    }
    cout << endl;
    n -= s;
  }
}
