#include <bits/stdc++.h>
using namespace std;
char c[256];
int k, a, b, n;
void readInput() {
  scanf("%d%d%d", &k, &a, &b);
  scanf("%s", &c);
  n = strlen(c);
}
void solve() {
  int x, y, i, pos = 0, t, tx;
  x = n / k;
  tx = x;
  y = n % k;
  if (a * k > n || b * k < n) {
    printf("No solution\n");
    return;
  }
  for (i = 1; i <= k; i++) {
    t = y;
    x = tx;
    if (y) {
      x++;
      y--;
    }
    while (x) {
      printf("%c", c[pos++]);
      x--;
    }
    printf("\n");
  }
}
int main() {
  readInput();
  solve();
  return 0;
}
