#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, a, b;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  int l = s.length();
  if (l > k * b || l < k * a) {
    cout << "No solution" << endl;
  } else {
    int start = 0;
    int total = l;
    for (int i = 0; i < k; ++i) {
      int lp = a;
      while (lp <= b) {
        if (a * (k - i - 1) <= total - lp && b * (k - i - 1) >= total - lp) {
          break;
        } else {
          ++lp;
        }
      }
      total -= lp;
      cout << s.substr(start, lp) << endl;
      start = start + lp;
    }
  }
  return 0;
}
