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;
const int inf = 2e9 + 10;
struct pp {
  int value, id;
  bool operator<(const pp &temp) const { return value > temp.value; }
};
pp heap[110000], now;
int n, l, st, a[110000], rt[110000], now_in;
int ix, pos[110000], size, cnt_list, ans;
long long now_sum;
bool vis[110000];
void heap_down(int id) {
  int l = 2 * id + 1, r = 2 * id + 2, ii = id;
  if (l < size && heap[l] < heap[ii]) ii = l;
  if (r < size && heap[r] < heap[ii]) ii = r;
  if (ii != id) {
    swap(heap[ii], heap[id]);
    pos[heap[id].id] = id;
    pos[heap[ii].id] = ii;
    heap_down(ii);
  }
}
void heap_up(int id) {
  int ii = (id - 1) / 2;
  if (heap[id] < heap[ii]) {
    swap(heap[id], heap[ii]);
    pos[heap[id].id] = id;
    pos[heap[ii].id] = ii;
    heap_up(ii);
  }
}
void del(int id) {
  now_sum -= heap[id].value;
  pos[heap[id].id] = -1;
  if (id != size - 1) {
    heap[id] = heap[size - 1];
    pos[heap[id].id] = id;
  }
  size--;
  heap_up(id);
  heap_down(id);
}
int main() {
  int i, j, s, p, q, id;
  bool have = false;
  cnt_list = 0;
  scanf("%d%d%d", &n, &l, &st);
  st--;
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  if (l < st) {
    have = true;
    l = n - 1 - l;
    st = n - 1 - st;
    for (i = 0; i < n / 2; i++) swap(a[i], a[n - 1 - i]);
    for (i = n - 1; i >= 0; i--) a[i] = a[0] - a[i];
  }
  if ((l == 0 || l == n - 1) && st != l) {
    puts("-1");
    return 0;
  }
  ans = (a[n - 1] - a[st]) + a[n - 1] - a[0];
  ix = -1;
  size = 0;
  now_sum = 0;
  memset(pos, -1, sizeof(pos));
  now_in = inf;
  for (i = st + 1; i < n - 1; i++) {
    heap[size].id = i + 1;
    pos[i + 1] = size;
    heap[size++].value = a[i + 1] - a[i];
    now_sum += a[i + 1] - a[i];
    heap_up(size - 1);
    if (size > l - st) {
      if (now_in > heap[0].value) {
        now_in = heap[0].value;
        id = heap[0].id;
      }
      del(0);
    }
  }
  if (ans > 2 * now_sum + (a[st] - a[0]) + a[n - 1] - a[0]) {
    ans = 2 * now_sum + (a[st] - a[0]) + a[n - 1] - a[0];
    ix = n - 2;
  }
  if (pos[n - 1] >= 0) del(pos[n - 1]);
  if (size < l - st && now_in != inf) {
    now.value = a[id] - a[id - 1];
    now.id = id;
    pos[id] = size;
    now_sum += a[id] - a[id - 1];
    heap[size++] = now;
    heap_up(size - 1);
  }
  for (i = n - 2; size > 0; i--) {
    if (pos[i] >= 0) del(pos[i]);
    while (size > l - st - (n - 1 - i)) del(0);
    if (ans >=
        2 * now_sum + a[n - 1] - a[i] + (a[st] - a[0]) + a[n - 1] - a[0]) {
      ans = 2 * now_sum + a[n - 1] - a[i] + (a[st] - a[0]) + a[n - 1] - a[0];
      ix = i - 1;
    }
  }
  printf("%d\n", ans);
  if (ix < 0) {
    for (i = st + 1; i < n - 1 - (l - st); i++) rt[cnt_list++] = i;
    for (i = n - 1; i >= max(n - 1 - (l - st), st + 1); i--) rt[cnt_list++] = i;
    for (i = st - 1; i >= 0; i--) rt[cnt_list++] = i;
  } else {
    size = 0;
    for (i = st + 2; i <= ix; i++) {
      now.id = i;
      now.value = a[i] - a[i - 1];
      heap[size++] = now;
      heap_up(size - 1);
    }
    while (size > l - st - (n - ix - 2)) del(0);
    memset(vis, false, sizeof(vis));
    for (i = 0; i < size; i++) {
      vis[heap[i].id] = true;
    }
    cnt_list = 0;
    for (i = st - 1; i >= 0; i--) rt[cnt_list++] = i;
    for (i = st + 1; i <= ix;) {
      if (!vis[i + 1]) {
        rt[cnt_list++] = i;
        i++;
      } else {
        for (j = i + 1; j <= ix; j++) {
          if (!vis[j]) break;
        }
        for (s = j - 1; s >= i; s--) rt[cnt_list++] = s;
        i = j;
      }
    }
    for (i = n - 1; i > ix; i--) rt[cnt_list++] = i;
  }
  if (have) {
    for (i = 0; i < cnt_list; i++) rt[i] = n - 1 - rt[i];
  }
  for (i = 0; i < cnt_list; i++) printf("%d ", rt[i] + 1);
  printf("\n");
  return 0;
}