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