#include <bits/stdc++.h>
using namespace std;
double eps = 1e-9;
const int INF = 1e9;
const int MAXN = int(5e5 + 7);
int n, k, second, ans = INF, a[200], d[2][151][151 * 151];
int main() {
  cin >> n >> k >> second;
  int t = k * (k + 1) / 2;
  second = min(150 * 150, t + second);
  for (int i = 0; i <= k; i++)
    for (int j = 0; j <= second; j++) d[1][i][j] = d[0][i][j] = INF;
  d[0][0][0] = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    for (int j = 0; j < k; j++)
      for (int k1 = 0; k1 <= second - i; k1++)
        d[i & 1][j + 1][k1 + i] =
            min(d[i & 1][j + 1][k1 + i], d[(i + 1) & 1][j][k1] + a[i]);
    for (int j = 0; j <= k; j++)
      for (int k1 = 0; k1 <= second; k1++)
        d[i & 1][j][k1] = min(d[i & 1][j][k1], d[(i + 1) & 1][j][k1]);
  }
  for (int i = 0; i <= second; i++) ans = min(ans, d[n & 1][k][i]);
  cout << ans;
  return 0;
}
