Problem: The story was not finished as PMP thought. God offered him one more chance to reincarnate and come back to life. But before he can come back, God told him that PMP should ask n great men including prominent programmers about their life experiences.

The men are standing on a straight line. They are numbered 1 through n from left to right. The coordinate of the i-th man is xi (xi < xi + 1, i < n). PMP should visit all these people one by one in arbitrary order. Each men should be visited exactly once. At the beginning of his tour, he starts at location of s-th man and asks him about his experiences.

Each time PMP wants to change his location, he should give a ticket to an angel and the angel carries him to his destination. Angels take PMP from one location, fly to his destination and put him down there. Nobody else is visited in this movement. Moving from i-th man to j-th man, takes |xi - xj| time. PMP can get back to life as soon as he visits all men.

There are two types of angels: Some angels are going to the right and they only accept right tickets. Others are going the left and they only accept left tickets. There are an unlimited number of angels of each type. PMP has l left tickets and n - 1 - l right tickets.

PMP wants to get back to life as soon as possible to be able to compete in this year's final instead of the final he missed last year. He wants to know the quickest way to visit all the men exactly once. He also needs to know the exact sequence moves he should make.

Input

The first line of input contains three space-separated integers n, l, s (2 ≤ n ≤ 105, 0 ≤ l < n, 1 ≤ s ≤ n) — the number of people to visit, the number left tickets PMP got, and initial location of PMP. Next line contains n space-separated integers. The i-th integer in this line is xi (0 = x1 < x2 < ... < xn ≤ 109) — the location of i-th man.

Output

If PMP cannot visit all men with the tickets he got print -1 in the only line of output. Otherwise, in the first line you should print the minimum time PMP can visit all men. In the second line you should print n - 1 integers that are the numbers of the men that PMP should visit in order in one optimal solution. If there are multiple answers, output any of them.

Please do not use the %lld specifier to read or write 64-bit integers in С++. It is preferred to use cin, cout streams or the %I64d specifier.

Examples

Input

5 2 2
0 10 11 21 22


Output

33
1 3 5 4


Input

4 3 1
0 1 2 3


Output

-1


Input

7 3 2
0 100 200 201 301 303 305


Output

409
1 3 4 7 6 5

Note

Let us remind here, a great contestant of all times, who left us about a year ago. May Renat Mullakhanov rest in peace.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int n, l, st, a[200000];
long long s[200000], ans;
int ans2[200000], ret2[200000];
int b[200000];
bool c[200000];
bool cpr(int x, int y) { return a[x] < a[y]; }
int h[200000], lh;
void up(int x) {
  while (x && h[x] < h[x >> 1]) {
    swap(h[x], h[x >> 1]);
    x = x >> 1;
  }
}
void down(int x) {
  while ((x << 1) <= lh && h[x << 1] < h[x] ||
         (x << 1 | 1) <= lh && h[x << 1 | 1] < h[x]) {
    int p =
        (x << 1 | 1) <= lh && h[x << 1 | 1] < h[x << 1] ? x << 1 | 1 : x << 1;
    swap(h[x], h[p]);
    x = p;
  }
}
void push(int x) {
  h[++lh] = x;
  up(lh);
}
void pop() {
  h[1] = h[lh--];
  down(1);
}
int top() { return h[1]; }
long long work() {
  if (l <= st) {
    int p(0);
    for (int i = (l); i >= (1); --i) ret2[++p] = i;
    for (int i = (l + 1); i <= (n + 1); ++i)
      if (i != st + 1) ret2[++p] = i;
    return s[st] + s[n];
  } else {
    int p(n - (l - st)), q;
    long long t(s[st] + s[n]), ret;
    t += s[n] - s[p];
    ret = t, q = p;
    lh = 0;
    for (int i = (st + 2); i <= (p); ++i) push(a[i]);
    for (int i = (p + 1); i <= (n); ++i) {
      t -= a[i];
      push(a[i]);
      t += top() * 2;
      pop();
      if (t < ret) {
        ret = t, q = i;
      }
    }
    for (int i = (st + 1); i <= (q); ++i) b[i] = i, c[i] = false;
    c[q + 1] = true;
    sort(b + st + 2, b + q + 1, cpr);
    for (int i = 1; i <= (l - st - (n - q)); ++i) c[b[st + 1 + i]] = true;
    p = 0;
    for (int i = (st); i >= (1); --i) ret2[++p] = i;
    for (int i = (st + 1); i <= (q); ++i)
      if (!c[i] && !c[i + 1])
        ret2[++p] = i + 1;
      else if (c[i]) {
        int j = i;
        while (c[j + 1]) ++j;
        for (int k = (j + 1); k >= (i); --k) ret2[++p] = k;
        i = j;
      }
    ret2[++p] = n + 1;
    for (int i = (n); i >= (q + 1); --i) ret2[++p] = i;
    return ret;
  }
}
int main() {
  scanf("%d%d%d", &n, &l, &st);
  --n, --st;
  for (int i = (0); i <= (n); ++i) scanf("%d", &s[i]);
  for (int i = 1; i <= (n); ++i) a[i] = s[i] - s[i - 1];
  if (l == 0 && st != 0 || l == n && st != n) {
    printf("-1\n");
    return 0;
  }
  ans = work();
  for (int i = 1; i <= (n); ++i) ans2[i] = ret2[i];
  l = n - l, st = n - st;
  for (int i = 1; i <= (n / 2); ++i) swap(a[i], a[n + 1 - i]);
  for (int i = 1; i <= (n); ++i) s[i] = s[i - 1] + a[i];
  long long t = work();
  if (t < ans) {
    ans = t;
    for (int i = 1; i <= (n); ++i) ans2[i] = n + 2 - ret2[i];
  }
  printf("%I64d\n", ans);
  for (int i = 1; i <= (n - 1); ++i) printf("%d ", ans2[i]);
  printf("%d\n", ans2[n]);
  return 0;
}