#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream myFile("task.in");
  if (!myFile.fail()) {
    assert(freopen("task.in", "r", stdin));
  }
  int k, a, b;
  cin >> k >> a >> b;
  string str;
  cin >> str;
  int n = str.size();
  if (a * k > n) {
    cout << "No solution" << endl;
    return 0;
  }
  if (b * k < n) {
    cout << "No solution" << endl;
    return 0;
  }
  int na = n / k;
  string arr[k + 10];
  for (int i = 0; i < k; i++) {
    arr[i] = "";
  }
  int A[k + 10];
  for (int i = 0; i < k; i++) {
    A[i] = na;
  }
  na = n - na * k;
  int ind = 0, i;
  while (na) {
    A[ind % k]++;
    ind++;
    na--;
  }
  ind = 0;
  i = 0;
  while (i < k) {
    for (int j = ind; j < ind + A[i]; j++) {
      cout << str[j];
    }
    ind += A[i];
    i++;
    cout << endl;
  }
  return 0;
}
