#include <bits/stdc++.h>
using namespace std;
const long long N = 100;
int main() {
  ios_base::sync_with_stdio(false);
  string a;
  cin >> a;
  int str = 1;
  for (int i = 1; i <= 5; i++) {
    if ((double)a.size() / i <= 20) {
      str = i;
      break;
    }
  }
  int stol = ceil((double)a.size() / str);
  int zvez = stol * str - a.size();
  int zvezstr = zvez / str;
  int lis_zvez = zvez - zvezstr * str;
  int g = 0;
  cout << str << ' ' << stol << endl;
  for (int i = 0; i < str; i++) {
    int now = stol;
    if (lis_zvez > 0) {
      now--;
    }
    for (int j = 0; j < now; j++) {
      cout << a[g];
      g++;
    }
    if (lis_zvez > 0) cout << "*";
    cout << endl;
    lis_zvez--;
  }
}
