#include <bits/stdc++.h>
using namespace std;
const long double INF = 1LL << 60, EPS = 1LL >> 60;
long long _i_n() {
  long long x = 0;
  char y = getchar();
  while (y <= '9' & y >= '0') x *= 10, x += y - '0', y = getchar();
  return x;
}
long long __in() {
  long long x;
  cin >> x;
  return x;
}
long long dp[200][40000], a[200];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  long long n = __in(), k = __in(), s = __in(), ans = INF;
  ((s) = min((s), (39999LL)));
  for (int i = 0; i <= n; i++)
    for (int j = 0; j <= s; j++) dp[i][j] = INF;
  dp[0][0] = 0;
  for (int i = 0; i < n; i++) a[i] = __in();
  for (int i = 1; i <= n; i++)
    for (int j = i - 1; j >= 0; j--)
      for (int l = 0; l <= s; l++)
        ((dp[j + 1][l + i - j - 1]) =
             min((dp[j + 1][l + i - j - 1]), (dp[j][l] + a[i - 1])));
  for (int i = 0; i <= s; i++) ((ans) = min((ans), (dp[k][i])));
  cout << ans << '\n';
  return 0;
}
