#include <bits/stdc++.h>
char s[40005];
int e[205];
int main() {
  int k, a, b;
  scanf("%d%d%d", &k, &a, &b);
  scanf("%s", s + 1);
  int n = strlen(s + 1);
  if (a * k > n || b * k < n) return !printf("No solution");
  for (int i = 1; i <= k; i++) e[i] = n / k;
  for (int i = 1; i <= n % k; i++) e[i]++;
  int ln = 1;
  for (int i = 1; i <= k; i++) {
    for (int j = 1; j <= e[i]; j++) {
      printf("%c", s[ln]);
      ln++;
    }
    printf("\n");
  }
  return 0;
}
