#include <bits/stdc++.h>
using namespace std;
int rx[8] = {1, 1, -1, 0, 0, -1, -1, 1};
int ry[8] = {0, 1, 0, -1, 1, 1, -1, -1};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, a, b;
  cin >> n >> a >> b;
  string s;
  cin >> s;
  int lol = s.size();
  if (lol > b * n || lol < a * n) {
    cout << "No solution" << '\n';
    return 0;
  }
  int now = 0;
  while (lol > 0) {
    int kek = lol / n;
    lol -= kek;
    for (int i = 0; i < kek; ++i) {
      cout << s[now++];
    }
    cout << '\n';
    n--;
  }
  return 0;
}
