#include <bits/stdc++.h>
using namespace std;
int read_num() {
  int num = 0;
  char ch;
  ch = getchar();
  while (!isdigit(ch)) ch = getchar();
  do {
    num = num * 10 + (ch - '0');
    ch = getchar();
  } while (isdigit(ch));
  return num;
}
int sahi[101];
int main() {
  int n;
  int k, a, b;
  string s;
  cin >> k >> a >> b;
  cin >> s;
  n = s.size();
  bool boo = true;
  if (n < a * k || n > k * b) boo = false;
  string temp = s;
  if (!boo) {
    cout << "No solution" << endl;
    return 0;
  }
  if (n % k == 0) {
    int in = 0;
    for (int i = 0; i < k; i++) {
      cout << s.substr(in, n / k) << endl;
      in += n / k;
    }
  } else {
    int rem = n % k;
    int in = 0;
    for (int i = 0; i < rem; i++) {
      cout << s.substr(in, n / k + 1) << endl;
      in += n / k + 1;
    }
    for (int i = 0; i < k - rem; i++) {
      cout << s.substr(in, n / k) << endl;
      in += n / k;
    }
  }
  return 0;
}
