#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, a, b;
  cin >> k >> a >> b;
  string x;
  cin >> x;
  string y[k + 1];
  for (int i = 0; i < x.size(); ++i) {
    if ((i / a) < k) {
      y[i / a] += x[i];
    } else {
      for (int j = k - 1; j > 0; --j) {
        if (y[j - 1].size() < b) {
          y[j - 1] += y[j][0];
          y[j].erase(y[j].begin());
        }
      }
      y[k - 1] += x[i];
    }
  }
  int flag = 0;
  for (int i = 0; i < k; ++i) {
    if (y[i].size() < a || y[i].size() > b) flag = 1;
  }
  if (flag)
    cout << "No solution" << endl;
  else {
    for (int i = 0; i < k; ++i) cout << y[i] << endl;
  }
}
