#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, a, b;
  string line;
  cin >> k >> a >> b;
  cin >> line;
  int l = a * k;
  int L = b * k;
  int s = line.size();
  if (s < l || s > L) {
    cout << "No solution" << endl;
    return 0;
  }
  int r = s - l;
  int i = 0, j;
  while (i < s) {
    if (r > 0)
      j = (b - a) > (r) ? r : (b - a);
    else
      j = 0;
    cout << line.substr(i, a + j) << endl;
    r -= j;
    i += a + j;
  }
  return 0;
}
