#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 3) + (x << 1) + (c ^ '0'), c = getchar();
  return x * f;
}
int n, K, s, f[152][5630], ans = 1e9 + 7;
int main() {
  n = read(), K = read(), s = read();
  s = min(s, 5625);
  for (register int i = 1; i <= n; ++i)
    for (register int j = 0; j <= s; ++j) f[i][j] = 0x3f3f3f3f;
  for (register int i = 0; i <= s; ++i) f[0][i] = 0;
  register int x;
  for (register int i = 1; i <= n; ++i) {
    register int x = read();
    for (register int j = min(i, K); j; --j)
      for (register int k = i - j; k <= s; ++k)
        f[j][k] = min(f[j][k], f[j - 1][k - i + j] + x);
  }
  printf("%d\n", f[K][s]);
  return 0;
}
