#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, a, b;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  int n = s.length();
  if (n > k * b || n < k * a) {
    cout << "No solution";
    return 0;
  }
  int loop = n / k;
  int i = 0, line = 0;
  for (; line < k - 1; line++) {
    for (int j = 0; j < loop; j++) {
      cout << s[i];
      i++;
    }
    cout << endl;
  }
  while (s[i] != '\0') {
    cout << s[i];
    i++;
  }
  return 0;
}
