#include <bits/stdc++.h>
using namespace std;
char a[105];
int main() {
  int T, m, x, y, k, n;
  while (scanf("%s", a) != EOF) {
    n = strlen(a);
    x = n % 20 == 0 ? n / 20 : n / 20 + 1;
    y = n % x == 0 ? n / x : n / x + 1;
    k = x * y - n;
    int l = 0;
    printf("%d %d\n", x, y);
    for (int i = 0; i < x; i++) {
      for (int j = 0; j < y; j++) {
        if (k != 0 && j == 0) {
          k--;
          printf("*");
        } else {
          printf("%c", a[l]);
          l++;
        }
      }
      printf("\n");
    }
  }
  return 0;
}
