#include <bits/stdc++.h>
using namespace std;
int main() {
  srand(time(NULL));
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  for (int a = 1; a <= 5; a++) {
    for (int b = 1; b <= 20; b++) {
      int sz = a * b;
      if (sz < n) continue;
      int k = sz - n;
      int x = k / a, y = k % a;
      vector<vector<char>> v(a, vector<char>(b, '*'));
      int pos = 0;
      for (int i = 0; i < a; i++) {
        for (int j = 0; j < b; j++) {
          if (i < y) {
            if (j < x + 1) continue;
          } else {
            if (j < x) continue;
          }
          v[i][j] = s[pos++];
        }
      }
      cout << a << ' ' << b << endl;
      for (int i = 0; i < a; i++) {
        for (int j = 0; j < b; j++) cout << v[i][j];
        cout << endl;
      }
      return 0;
    }
  }
  return 0;
}
