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