#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int a1 = 0;
  int b1 = 0;
  int k;
  int f = 10;
  for (int a = 1; a <= 5; a++) {
    for (int b = 1; b <= 20; b++) {
      if (s.size() <= a * b) {
        k = a * b - s.size();
        a1 = a;
        b1 = b;
        int r = 0;
        int m = 0;
        cout << a1 << ' ' << b1 << endl;
        for (int l = 0; l < a1; l++) {
          r = 0;
          if (l < (k % a1)) {
            for (int i = 0; i < k / a1 + 1; i++) {
              cout << '*';
              r++;
            }
          } else {
            for (int i = 0; i < k / a1; i++) {
              cout << "*";
              r++;
            }
          }
          for (int c = r; c < b1; c++) {
            cout << s[m];
            m++;
          }
          cout << endl;
        }
        return 0;
      }
    }
  }
  return 0;
}
