#include <bits/stdc++.h>
using namespace std;
void S() {
  int k, a, b, i = 0;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  if (s.size() < k * a || s.size() > k * b) {
    cout << "No solution";
    return;
  }
  int x = s.size() / k;
  for (int(ii) = (0); (ii) < (k); (ii)++) {
    int xx = x;
    while (xx--) cout << s[i], i++;
    if (ii != k - 1) cout << "\n";
  }
  for (int(j) = (i); (j) < (s.size()); (j)++) cout << s[j];
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  S();
}
