#include <bits/stdc++.h>
using namespace std;
long long int m, n, c, d, j, k, l, r, x, t, y, u, b, z, i, e, f, g, h;
string s, p;
vector<string> v;
int main() {
  cin >> n >> m >> e >> s;
  c = s.size();
  if (m * n > c || c > n * e)
    cout << "No solution";
  else {
    while (n--) {
      while (e > s.size() - n * m) e--;
      cout << s.substr(0, e) << endl;
      s.erase(0, e);
    }
  }
}
