#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int ok = 1, x = 1;
  while (ok) {
    if (n % x == 0) {
      if (n / x <= 20) {
        int y = n / x, t = 0;
        cout << x << " " << y << '\n';
        for (int i = 1; i <= x; ++i) {
          for (int j = 1; j <= y; ++j) {
            cout << s[t];
            ++t;
          }
          cout << '\n';
        }
        return 0;
      } else
        ++x;
    } else {
      if (n / x + 1 <= 20) {
        int y = n / x + 1, t = 0, t1 = n % x;
        cout << x << " " << y << '\n';
        for (int i = 1; i <= x; ++i) {
          for (int j = 1; j < y; ++j) {
            cout << s[t];
            ++t;
          }
          if (t1 > 0)
            cout << s[t], ++t, --t1;
          else
            cout << "*";
          cout << '\n';
        }
        return 0;
      } else
        ++x;
    }
  }
  return 0;
}
