#include <bits/stdc++.h>
using namespace std;
const int Maxn = 100100;
const int INF = 0x7f7f7f7f;
const double eps = 1e-8;
const double pi = 3.1415926535897932384626433832795;
int ans[210];
int main() {
  int k, a, b, len;
  string str;
  cin >> k >> a >> b;
  cin >> str;
  len = (int)str.size();
  if (k * a > len || k * b < len)
    cout << "No solution\n";
  else {
    int t = len - a * k;
    for (int i = 0; i < k; i++) ans[i] = a;
    for (int i = 0; i < k; i++)
      if (t > 0) {
        ans[i] += min(t, b - a);
        t -= min(t, b - a);
      }
    t = 0;
    for (int i = 0; i < k; i++) {
      cout << str.substr(t, ans[i]) << endl;
      t += ans[i];
    }
  }
  return 0;
}
