#include <bits/stdc++.h>
using namespace std;
ifstream fin("input.txt");
ofstream fout("output2.txt");
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  string s;
  cin >> s;
  if (s.size() <= 20) {
    cout << 1 << ' ' << s.size() << "\n" << s;
    exit(0);
  }
  int mins = 0;
  if (s.size() % 20 == 0)
    mins = s.size() / 20;
  else
    mins = s.size() / 20 + 1;
  int minc = 0;
  if (s.size() % mins == 0)
    minc = s.size() / mins;
  else
    minc = s.size() / mins + 1;
  vector<char> ans;
  for (int i = 0; i < s.size(); i++) {
    ans.push_back(s[i]);
  }
  int ost = 0;
  ost = mins * minc - s.size();
  int balance = 0;
  cout << mins << ' ' << minc << endl;
  for (int i = 0; i < mins; i++) {
    for (int j = 0; j < minc; j++) {
      cout << ans[i * minc + j - balance];
      if (j + 1 == minc) cout << endl;
      if (j + 2 == minc && ost > 0) {
        cout << '*' << endl;
        ost--;
        balance++;
        break;
      }
    }
  }
}
