#include <bits/stdc++.h>
using namespace std;
int k, a, b;
string s;
int main() {
  cin >> k >> a >> b;
  cin >> s;
  if (s.size() < k * a || k * b < s.size())
    cout << "No solution" << endl;
  else {
    int c = s.size() / k, p = 0;
    for (int r = 1; r <= k; r++) {
      if (r < k) {
        for (int i = 1; i <= c; i++) cout << s[p++];
        cout << endl;
      } else {
        while (p < s.size()) cout << s[p++];
        cout << endl;
      }
    }
  }
}
