#include <bits/stdc++.h>
using namespace std;
template <typename XTYPE>
inline void _var_(const XTYPE& a) {}
template <typename XTYPE>
inline void _vector_(const XTYPE& a) {}
template <typename XTYPE>
inline void _matrix_(const XTYPE& a) {}
inline void fast_input() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
const long long LINF = LLONG_MAX;
const int INF = 2000000000;
const double PI = atan(1.0) * 4;
const int MOD = 1e9 + 7;
const int a = 5;
const int b = 20;
string s;
vector<string> ans;
vector<pair<int, int> > info;
vector<int> getdec(int all, int k) {
  vector<int> res(k, 0);
  int it = 0;
  while (all-- > 0) {
    res[it]++;
    it++;
    if (it == k) it = 0;
  }
  return res;
}
string get(int k, int len) {
  int table_sz = k * len;
  if (k * len < s.size()) return "";
  int free = table_sz - s.size();
  string res = "";
  int it = 0;
  vector<int> incdec = getdec(free, k);
  for (int i = 0; i < int(k); i++) {
    int cur_free = incdec[i];
    for (int j = 0; j < int(len); j++) {
      if (cur_free) {
        res += '*';
        cur_free--;
        continue;
      }
      res += s[it];
      it++;
    }
    res += '\n';
  }
  return res;
}
int main() {
  fast_input();
  cin >> s;
  for (int i = 0; i < int(a); i++) {
    for (int j = 0; j < int(b); j++) {
      ans.push_back(get(i + 1, j + 1));
      info.push_back(make_pair(i + 1, j + 1));
    }
  }
  for (int i = 0; i < int(ans.size()); i++) {
    if (ans[i] != "") {
      cout << info[i].first << " " << info[i].second << '\n';
      cout << ans[i];
      exit(0);
    }
  }
  return 0;
}
