#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, a, b, k, c, d, i, j;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  n = s.size();
  d = (n / k);
  c = (n % k);
  vector<int> v;
  if (n < (a * k) || n > (b * k))
    cout << "No solution";
  else if (n >= (a * k) && n <= (b * k)) {
    for (i = 1; i <= k; i++) {
      if (c > 0) {
        v.push_back(d + 1);
        c--;
      } else if (c == 0)
        v.push_back(d);
    }
    j = 0;
    for (i = 0; i <= k - 1; i++) {
      while (v[i]--) {
        cout << s[j];
        j++;
      }
      cout << "\n";
    }
  }
  return 0;
}
