#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const int len = 200001;
int b = 20, c;
bool check(string &s, int n, int a) {
  if (n > b * a) return false;
  b = n / a;
  c = n % a;
  if (c) b++;
  c = (a - c) % a;
  int u = 0;
  cout << a << ' ' << b << '\n';
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      if (!j && c) {
        cout << "*";
        c--;
        continue;
      }
      cout << s[u];
      u++;
    }
    cout << '\n';
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string s;
  cin >> s;
  int n = s.length();
  for (int i = 1; i <= 5; i++) {
    if (check(s, n, i)) return 0;
  }
  return 0;
}
