#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, a, b;
  cin >> k >> a >> b;
  string s;
  cin >> s;
  int n = s.size();
  if (n < k * a || n > k * b)
    cout << "No solution";
  else {
    int temp = n / k;
    int temp2 = n % k;
    int i = 0;
    for (int j = 0; j < temp2; j++) {
      for (int l = 0; l <= temp; l++) {
        cout << s[i];
        i++;
      }
      cout << endl;
    }
    for (int j = temp2; j < k; j++) {
      for (int l = 0; l < temp; l++) {
        cout << s[i];
        i++;
      }
      cout << endl;
    }
  }
  return 0;
}
