Problem: A top-secret military base under the command of Colonel Zuev is expecting an inspection from the Ministry of Defence. According to the charter, each top-secret military base must include a top-secret troop that should... well, we cannot tell you exactly what it should do, it is a top secret troop at the end. The problem is that Zuev's base is missing this top-secret troop for some reasons.

The colonel decided to deal with the problem immediately and ordered to line up in a single line all n soldiers of the base entrusted to him. Zuev knows that the loquacity of the i-th soldier from the left is equal to qi. Zuev wants to form the top-secret troop using k leftmost soldiers in the line, thus he wants their total loquacity to be as small as possible (as the troop should remain top-secret). To achieve this, he is going to choose a pair of consecutive soldiers and swap them. He intends to do so no more than s times. Note that any soldier can be a participant of such swaps for any number of times. The problem turned out to be unusual, and colonel Zuev asked you to help.

Determine, what is the minimum total loquacity of the first k soldiers in the line, that can be achieved by performing no more than s swaps of two consecutive soldiers.

Input

The first line of the input contains three positive integers n, k, s (1 ≤ k ≤ n ≤ 150, 1 ≤ s ≤ 109) — the number of soldiers in the line, the size of the top-secret troop to be formed and the maximum possible number of swap operations of the consecutive pair of soldiers, respectively.

The second line of the input contains n integer qi (1 ≤ qi ≤ 1 000 000) — the values of loquacity of soldiers in order they follow in line from left to right.

Output

Print a single integer — the minimum possible total loquacity of the top-secret troop.

Examples

Input

3 2 2
2 4 1


Output

3


Input

5 4 2
10 1 6 2 5


Output

18


Input

5 2 3
3 1 4 2 5


Output

3

Note

In the first sample Colonel has to swap second and third soldiers, he doesn't really need the remaining swap. The resulting soldiers order is: (2, 1, 4). Minimum possible summary loquacity of the secret troop is 3. In the second sample Colonel will perform swaps in the following order:

  1. (10, 1, 6 — 2, 5) 
  2. (10, 1, 2, 6 — 5) 



The resulting soldiers order is (10, 1, 2, 5, 6). 

Minimum possible summary loquacity is equal to 18.

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.StringTokenizer;


public class ProblemA {
    public static void main(String[] args) {
        int testMode = 0;
        String testInput = "3 2 2\n" +
                "2 4 1";
        /*-------------------------------------------------------------------------------------------------------*/
        FastReader in = new FastReader(testMode == 0 ? System.in : new ByteArrayInputStream(testInput.getBytes()));
        PrintWriter out = new PrintWriter(System.out);
        new ProblemSolver().solve(in, out);
        out.close();
    }
}

class ProblemSolver {
    double intersect(int a1, int b1, int a2, int b2) {
        return (double) (b2 - b1) / (a1 - a2);
    }

    boolean equal(double x1, double x2) {
        return (Math.abs(x1 - x2) < 1e-10) ? true : false;
    }

    boolean inside1(double x1, double x2, double x3, double t1, double t3) {
        if (!((x1 < x3 && x3 < x2) || equal(x1, x3) || equal(x2, x3)))
            return false;
        return equal(t1 + (x3 - x1), t3) ? true : false;
    }

    boolean inside0(double x1, double x2, double x3, double t1, double t3) {
        if (!((x2 < x3 && x3 < x1) || equal(x1, x3) || equal(x2, x3)))
            return false;
        return equal(t1 + (x1 - x3), t3) ? true : false;
    }

    int get_type(double x1, double x2) {
        return x1 < x2 ? 1 : -1;
    }

    boolean inside(double x1, double x2, double x3, double t1, double t3) {
        return (get_type(x1, x2) == 1) ? inside1(x1, x2, x3, t1, t3) : inside0(x1, x2, x3, t1, t3);
    }

    void solve(FastReader in, PrintWriter out) {

        int N = in.nextInt();
        int K = in.nextInt();
        int S = Math.min(N * N / 2, in.nextInt());
        long[] Q = new long[N + 1];
        long[][][] d = new long[2][N + 1][S + 1];
        for (int n = 1; n <= N; n++) Q[n] = in.nextInt();

        int pre = 0;
        int cur = 1;
        long res = Long.MAX_VALUE / 2;
        for (int k = 1; k <= K; k++) {
            for (int n = 0; n <= N; n++) {
                for (int s = 0; s <= S; s++) {
                    if (n < k) {
                        d[cur][n][s] = Long.MAX_VALUE / 2;
                        continue;
                    }

                    long val = Long.MAX_VALUE / 2;

                    if (val > d[cur][n - 1][s]) val = d[cur][n - 1][s];
                    if (s - (n - k) >= 0 && val > d[pre][n - 1][s - (n - k)] + Q[n])
                        val = d[pre][n - 1][s - (n - k)] + Q[n];

                    if (k == K && val < res) res = val;
                    d[cur][n][s] = val;
                }
            }
            int t = cur;
            cur = pre;
            pre = t;
        }

        out.println(res);
    }
}

class FastReader extends BufferedReader {
    private StringTokenizer st;

    public FastReader(InputStream is) {
        super(new InputStreamReader(is));
    }

    public String nextToken() {
        try {
            while (st == null || !st.hasMoreElements()) {
                st = new StringTokenizer(readLine());
            }
            return st.nextToken();
        } catch (IOException e) {
            return null;
        }
    }

    public int nextInt() {
        return Integer.parseInt(nextToken());
    }

    public long nextLong() {
        return Long.parseLong(nextToken());
    }

    public int[] nextArrayInt(int size) {
        int[] ret = new int[size];
        for (int i = 0; i < size; i++) {
            ret[i] = nextInt();
        }
        return ret;
    }
}