#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  long long n = s.size();
  long long a = (n + 19) / 20;
  long long b = (n + a - 1) / a;
  cout << a << " " << b << "\n";
  long long r = n % a;
  bool f = 1;
  if (!r) {
    f = 0;
  }
  long long pos = 0;
  for (long long i = 0; i < a; ++i) {
    for (long long j = 0; j < b - 1; ++j) {
      cout << s[pos];
      ++pos;
    }
    if (!f || f && r) {
      cout << s[pos];
      ++pos;
      --r;
    } else {
      cout << "*";
    }
    cout << "\n";
  }
  return 0;
}
