#include <bits/stdc++.h>
using namespace std;
int main() {
  double k, a, b;
  cin >> k >> a >> b;
  if (a > b) swap(a, b);
  char read[300];
  scanf(" %s", read);
  int len = strlen(read);
  double x = (double)len / k;
  if (x >= a && x <= b) {
    double curr = x;
    double j = 0;
    for (int i = 0; i < len; i++, j++) {
      if (j >= curr) {
        curr += x;
        printf("\n");
      }
      printf("%c", read[i]);
    }
  } else
    printf("No solution");
}
