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;
struct ww {
  int l, r, sum;
  long long an;
  vector<int> a;
  inline void clear() {
    l = r = sum = an = 0;
    a.clear();
  }
} tr[100010 * 60];
int i, j, k, n, m, t, l, s, root, _, ann;
int a[100010], b[100010], ans[100010];
long long an;
inline void update(int x) {
  int y = tr[x].l, z = tr[x].r;
  tr[x].sum = tr[y].sum + tr[z].sum;
  tr[x].an = tr[y].an + tr[z].an;
}
void inc(int &q, int x, int y, int k) {
  if (!q) q = ++t, tr[q].clear();
  if (x == y) {
    tr[q].sum++;
    tr[q].an += x;
    tr[q].a.push_back(i - 1);
    return;
  }
  int mid = (x + y) / 2;
  if (k <= mid)
    inc(tr[q].l, x, mid, k);
  else
    inc(tr[q].r, mid + 1, y, k);
  update(q);
}
long long cal(int q, int x, int y, int k) {
  if (k <= 0) return 0;
  if (x == y) return 1ll * k * x;
  int mid = (x + y) / 2, A = tr[q].l;
  if (tr[A].sum <= k)
    return tr[A].an + cal(tr[q].r, mid + 1, y, k - tr[A].sum);
  else
    return cal(tr[q].l, x, mid, k);
}
void Cal(int q, int x, int y, int k) {
  if (k <= 0 || !q) return;
  if (x == y) {
    int i;
    for (i = 0; i < k; i++) {
      int A = tr[q].a[i];
      b[A] = 1;
    }
    return;
  }
  int mid = (x + y) / 2, A = tr[q].l;
  Cal(A, x, mid, min(k, tr[A].sum));
  if (tr[A].sum <= k) Cal(tr[q].r, mid + 1, y, k - tr[A].sum);
}
inline void work(int ty) {
  t = root = 0;
  long long S = a[s] - a[1] + a[n] - a[1];
  for (i = s + 2; i <= n; i++) {
    int sum = s - 1 + n - i;
    {
      long long re = cal(root, 1, a[n], l - sum);
      long long res = re * 2 + S + a[n] - a[i];
      if (res < an) {
        an = res;
        _ = ty;
        ann = i;
      }
    }
    inc(root, 1, a[n], a[i] - a[i - 1]);
  }
}
inline void ping() {
  int t;
  ans[t = 1] = s;
  if (l < s) {
    for (j = l; j; j--) ans[++t] = j;
    for (j = l + 1; j <= n; j++)
      if (j != s) ans[++t] = j;
  } else {
    for (j = s - 1; j; j--) ans[++t] = j;
    for (i = s + 1; i < ann; i = j + 1)
      if (!b[i])
        ans[++t] = i, j = i;
      else {
        for (j = i; j < ann && b[j]; j++)
          ;
        ans[++t] = j;
        for (k = j - 1; k >= i; k--) ans[++t] = k;
      }
    ans[++t] = n;
    for (i = n - 1; i >= ann; i--) ans[++t] = i;
  }
  for (i = 2; i <= n; i++)
    if (!_)
      printf("%d ", ans[i]);
    else
      printf("%d ", n - ans[i] + 1);
  printf("\n");
}
inline void print() {
  if (!_) {
    for (i = 1; i <= n; i++) a[i] = a[n] - a[i];
    for (i = 1; i <= n / 2; i++) swap(a[i], a[n - i + 1]);
    l = n - 1 - l;
    s = n - s + 1;
  }
  t = root = 0;
  for (i = s + 2; i <= ann; i++) {
    int sum = s - 1 + n - i;
    if (i == ann) Cal(root, 1, a[n], l - sum);
    inc(root, 1, a[n], a[i] - a[i - 1]);
  }
  ping();
}
int main() {
  scanf("%d%d%d", &n, &l, &s);
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  if (!l) {
    if (s == 1) {
      printf("%d\n", a[n] - a[1]);
      for (i = 2; i <= n; i++) printf("%d ", i);
      printf("\n");
    } else
      printf("-1\n");
    return 0;
  }
  if (l + 1 == n) {
    if (s == n) {
      printf("%d\n", a[n] - a[1]);
      for (i = n - 1; i; i--) printf("%d ", i);
      printf("\n");
    } else
      printf("-1\n");
    return 0;
  }
  an = (long long)1e18;
  work(0);
  for (i = 1; i <= n; i++) a[i] = a[n] - a[i];
  for (i = 1; i <= n / 2; i++) swap(a[i], a[n - i + 1]);
  l = n - 1 - l;
  s = n - s + 1;
  work(1);
  printf("%I64d\n", an);
  print();
  return 0;
}