#include <bits/stdc++.h>
using namespace std;
string s;
int n, m, c;
char a[5][20];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> s;
  while (n * 20 < s.size()) n++;
  while (n * m < s.size()) m++;
  int k = n - (s.size() % n);
  if (k == n) k = 0;
  cout << n << " " << m << "\n";
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m - 1; j++) cout << s[c++];
    if (i < k)
      cout << "*\n";
    else
      cout << s[c++] << "\n";
  }
}
