#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int n, i, k, a, b, p, r, j;
string s, ans;
int main() {
  cin >> k >> a >> b >> s;
  p = s.size();
  if (p > k * b || k * a > p) return cout << "No solution", 0;
  r = p % k;
  for (i = 0; i < k; i++, r--) {
    ans = s.substr(j, p / k + (r > 0));
    cout << ans << endl;
    j += p / k + (r > 0);
  }
  return 0;
}
