#include <bits/stdc++.h>
using namespace std;
char s[10000];
int main() {
  int k, a, b;
  while (cin >> k >> a >> b) {
    char ch;
    int i = 0;
    while ((ch = getchar()) != EOF) s[i++] = ch;
    int len = strlen(s);
    if ((len - 2) < k * a || (len - 2) > k * b)
      cout << "No solution" << endl;
    else {
      int ave = (len - 2) / k, j, l;
      for (j = 1; j <= k; j++) {
        if (j < k) {
          for (l = (j - 1) * ave + 1; l <= j * ave; l++) cout << s[l];
          cout << endl;
        } else {
          for (l = (j - 1) * ave + 1; l < len - 1; l++) cout << s[l];
          cout << endl;
        }
      }
    }
  }
  return 0;
}
