#include <bits/stdc++.h>
using namespace std;
long long a, c, b, kai;
string aa;
int main() {
  cin >> a >> b >> c;
  cin >> aa;
  int la = aa.size();
  if (la < b * a || la > c * a) {
    cout << "No solution";
    return 0;
  }
  int d = la / a;
  int e = la % a;
  for (int i = 1; i <= a; i++) {
    if (e != 0) {
      e--;
      for (int j = kai; j <= kai + d; j++) {
        cout << aa[j];
      }
      kai = kai + d + 1;
      cout << endl;
      continue;
    }
    if (e == 0) {
      for (int j = kai; j < kai + d; j++) {
        cout << aa[j];
      }
      kai = kai + d;
      cout << endl;
      continue;
    }
  }
}
