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 N = 100020;
bool B;
int n, k, st, m;
long long a[N], T[4 * N], A[N];
long long answer, now;
int t[4 * N], C[N], P[N];
vector<pair<long long, int> > ar;
vector<int> S;
void ptf(int v) {
  if (B)
    printf("%d ", n - v + 1);
  else
    printf("%d ", v);
}
void update(int v, int tl, int tr, int l, long long x) {
  if (tl > l || tr <= l) return;
  if (tl == tr - 1) {
    t[v] = 1;
    T[v] = x;
    return;
  }
  update(v + v, tl, tl + tr >> 1, l, x);
  update(v + v + 1, tl + tr >> 1, tr, l, x);
  t[v] = t[v + v] + t[v + v + 1];
  T[v] = T[v + v] + T[v + v + 1];
}
void Build(int v, int tl, int tr) {
  if (tl == tr - 1) {
    t[v] = T[v] = 0;
    return;
  }
  Build(v + v, tl, tl + tr >> 1);
  Build(v + v + 1, tl + tr >> 1, tr);
  t[v] = T[v] = 0;
}
long long get(int v, int tl, int tr, int x) {
  if (x == 0) return 0;
  if (t[v] == x || tl == tr - 1) return T[v];
  if (t[v + v] > x) return get(v + v, tl, tl + tr >> 1, x);
  return T[v + v] + get(v + v + 1, tl + tr >> 1, tr, x - t[v + v]);
}
int main() {
  scanf("%d %d %d", &n, &k, &st);
  for (int i = 1; i <= n; ++i) scanf("%I64d", &a[i]);
  if ((k == 0 && st > 1) || (k == n - 1 && st < n)) return printf("-1\n"), 0;
  if (st - 1 > k) {
    B = true;
    for (int i = 1; i <= n; ++i) a[i] = a[n] - a[i];
    reverse(a + 1, a + n + 1);
    st = n + 1 - st;
    k = n - k - 1;
  }
  answer = a[n] + a[n] - a[st];
  if (st == k + 1) answer = min(answer, a[st] + a[n]);
  now = a[n] + a[st];
  int p = k - st + 1;
  for (int i = st + 1; i < n; ++i)
    A[i] = a[i + 1] - a[i], ar.push_back({A[i], i});
  sort(ar.begin(), ar.end());
  m = ar.size();
  for (int i = 0; i < ar.size(); ++i) C[ar[i].second] = i;
  for (int i = st + 1; i <= n; ++i) {
    if (n - i > p) {
      update(1, 0, m, C[i], A[i]);
      continue;
    }
    long long cur = now + a[n] - a[i] + 2 * get(1, 0, m, p - (n - i));
    answer = min(answer, cur);
    update(1, 0, m, C[i], A[i]);
  }
  cout << answer << endl;
  if (answer == a[n] + a[n] - a[st]) {
    int p = n - k - 1;
    for (int i = st + 1; i < st + p; ++i) ptf(i);
    if (st < n) ptf(n);
    for (int i = n - 1; i >= st + p; --i) ptf(i);
    for (int i = st - 1; i >= 1; --i) ptf(i);
    return 0;
  }
  if (k == st - 1) {
    for (int i = st - 1; i >= 1; --i) ptf(i);
    for (int i = st + 1; i <= n; ++i) ptf(i);
    return 0;
  }
  Build(1, 0, m);
  for (int i = st + 1; i <= n; ++i) {
    if (n - i > p) {
      update(1, 0, m, C[i], A[i]);
      continue;
    }
    long long cur = now + a[n] - a[i] + 2 * get(1, 0, m, p - (n - i));
    if (answer == cur) {
      for (int j = st - 1; j >= 1; --j) ptf(j);
      ar.clear();
      for (int j = st + 1; j < i; ++j) ar.push_back({A[j], j});
      sort(ar.begin(), ar.end());
      for (int j = 0; j < p - (n - i); ++j) {
        int x = ar[j].second;
        P[x + 1] = x;
      }
      for (int j = i; j < n; ++j) P[j + 1] = j;
      for (int j = st + 1; j <= n; ++j)
        if (P[j + 1] == 0) S.push_back(j);
      for (int j = 0; j < S.size(); ++j) {
        int x = S[j];
        ptf(x);
        while (P[x] != 0) {
          ptf(P[x]);
          x = P[x];
        }
      }
      return 0;
    }
    update(1, 0, m, C[i], A[i]);
  }
}