#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)1e18;
void print_vector(vector<long long> &a) {
  for (auto &i : a) {
    cout << i << " ";
  }
  cout << '\n';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long n, l = 1, r = 1;
  n = (long long)s.size();
  bool check = true;
  for (int i = 1; i <= 5; ++i) {
    for (int j = 1; j <= 20; ++j) {
      if (j * i >= n) {
        l = i;
        r = j;
        check = false;
        break;
      }
    }
    if (!check) {
      break;
    }
  }
  long long k = n / l, p;
  p = l * r - n;
  long long cur = 0, asd = p;
  cout << l << " " << r << '\n';
  for (int j = 0; j < l; ++j) {
    for (int i = 0; i < r; ++i) {
      if (i == 0 and p > 0) {
        cout << '*';
        p--;
      } else {
        cout << s[cur];
        cur++;
      }
    }
    cout << '\n';
  }
  return 0;
}
