#include <bits/stdc++.h>
using namespace std;
char s[102], ans[6][22];
int lens, n, m, r, cnt;
int main() {
  scanf("%s", s + 1);
  lens = (int)strlen(s + 1);
  if (lens <= 20) {
    printf("1 %d\n%s\n", lens, s + 1);
  } else {
    n = (lens + 19) / 20;
    m = (lens + n - 1) / n;
    r = (n * m) - lens;
    printf("%d %d\n", n, m);
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j < m; j++) {
        ans[i][j] = s[++cnt];
      }
      if (i <= r) {
        ans[i][m] = '*';
      } else {
        ans[i][m] = s[++cnt];
      }
    }
    for (int i = 1; i <= n; i++) {
      printf("%s\n", ans[i] + 1);
    }
  }
  return 0;
}
