#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, r, c, i, d, j = 0, a = 0, b = 0;
  string s;
  cin >> s;
  n = s.size();
  r = 1;
  c = n;
  while (c > 20) {
    r++;
    c = ceil((float)n / (float)r);
  }
  d = r * c - n;
  cout << r << " " << c << endl;
  while (j < r && d > 0) {
    string s1(s, a, c - 1);
    cout << "*" << s1 << endl;
    a = a + c - 1;
    j++;
    d--;
  }
  while (j < r) {
    string s1(s, a, c);
    cout << s1 << endl;
    a = a + c;
    j++;
  }
}
