#include <bits/stdc++.h>
using namespace std;
int main() {
  string winner_handle;
  int min_number_of_rows;
  int min_number_of_columns;
  int char_num;
  int asterisk_count;
  int i;
  int start_of_row = 0;
  cin >> winner_handle;
  char_num = winner_handle.length();
  min_number_of_rows = (char_num + 19) / 20;
  min_number_of_columns =
      (char_num + min_number_of_rows - 1) / min_number_of_rows;
  asterisk_count = char_num % min_number_of_rows;
  if (asterisk_count > 0) {
    asterisk_count = min_number_of_rows - asterisk_count;
  }
  cout << min_number_of_rows << " " << min_number_of_columns << endl;
  for (i = 1; i <= min_number_of_rows; i++) {
    if (min_number_of_rows - asterisk_count < i) {
      cout << winner_handle.substr(start_of_row, min_number_of_columns - 1)
           << "*" << endl;
      start_of_row = start_of_row + min_number_of_columns - 1;
    } else {
      cout << winner_handle.substr(start_of_row, min_number_of_columns) << endl;
      start_of_row = start_of_row + min_number_of_columns;
    }
  }
  return 0;
}
