#include <bits/stdc++.h>
using namespace std;
constexpr int N = 150 + 10;
constexpr int INF = 1e9;
int n, limit, s, dp[N][(N * N) / 4], a[N], answer = INF;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> limit >> s;
  for (int i = 1; i <= n; i++) cin >> a[i];
  s = min(s, (n * n) / 4);
  memset(dp, 63, sizeof(dp));
  dp[0][0] = 0;
  for (int i = 1; i <= n; i++)
    for (int j = min(limit, i); j; j--)
      for (int k = s; k - i + j >= 0; k--)
        dp[j][k] = min(dp[j][k], dp[j - 1][k - i + j] + a[i]);
  for (int i = 0; i <= s; i++) answer = min(answer, dp[limit][i]);
  cout << answer << '\n';
  return 0;
}
