#include <bits/stdc++.h>
using namespace std;
void solve() {
  int k, a, b, len, dv, rm;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  len = s.length();
  if (len < k * a || len > k * b) {
    cout << "No solution"
         << "\n";
    return;
  }
  if (len == k * a) {
    for (int i = 0; i < k; i++) {
      cout << s.substr(a * i, a) << "\n";
    }
    return;
  }
  if (len == k * b) {
    for (int i = 0; i < k; i++) {
      cout << s.substr(b * i, b) << "\n";
    }
    return;
  }
  dv = len / k;
  rm = len % k;
  for (int i = 0; i < rm; i++) {
    cout << s.substr((dv + 1) * i, dv + 1) << "\n";
  }
  for (int i = 0; i < k - rm; i++) {
    cout << s.substr((rm * (dv + 1)) + (dv * i), dv) << "\n";
  }
}
int main() {
  solve();
  return 0;
}
