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, lt, rt, s;
int di[101000];
int dd[101000];
const long long INF = 10000000000000000ll;
long long ans = INF;
int aid[101000];
int tid[101000], tt;
bool flag;
bool ansf;
long long ta;
inline void cl() { tt = 0; }
inline void pp(int x) { tid[tt++] = x; }
inline void tr() {
  if (ta < ans) {
    ans = ta;
    ansf = flag;
    for (int i = 0; i < n - 1; i++) aid[i] = tid[i];
  }
}
pair<int, int> ev[101000];
int to[101000];
bool rev[101000];
inline void trylr() {
  if (s == n - 1) return;
  if (rt == 0) return;
  int i, j;
  if (lt == 0) {
    if (s != 0) return;
    cl();
    for (i = 1; i < n; i++) pp(i);
    ta = (long long)di[n - 1] - di[0];
    tr();
    return;
  }
  if (lt <= s) {
    cl();
    for (i = lt - 1; i >= 0; i--) pp(i);
    for (i = lt; i < s; i++) pp(i);
    for (i = s + 1; i < n; i++) pp(i);
    ta = (long long)di[n - 1] - di[0] + (long long)di[s] - di[0];
    tr();
    return;
  } else if (rt == 1) {
    cl();
    for (i = s - 1; i >= 0; i--) pp(i);
    for (i = n - 1; i > s; i--) pp(i);
    ta = (long long)di[s] - di[0] + (long long)di[n - 1] - di[0] +
         (long long)di[n - 1] - di[s + 1];
    tr();
    return;
  } else {
    int mo = lt - s;
    int evc = 0;
    for (i = s + 1; i < n - 1; i++) {
      ev[evc++] = make_pair(dd[i], i);
    }
    sort(ev, ev + evc);
    for (i = 0; i < evc; i++) to[ev[i].second] = i;
    long long ss = 0;
    int bi = -1;
    long long ba = INF;
    set<int> XD;
    set<int>::iterator pt;
    for (i = s + 1; i < n - mo - 1; i++) {
      XD.insert(to[i]);
    }
    for (i = n - mo - 1; i < n; i++) {
      if (ba > ss * 2 + di[n - 1] - di[i]) {
        ba = ss * 2 + di[n - 1] - di[i];
        bi = i;
      }
      int toa = i - 1;
      if (i == n - mo - 1) {
        XD.insert(to[toa]);
        pt = XD.begin();
        ss += ev[*pt].first;
      } else {
        if (to[toa] < *pt) {
          ss += ev[to[toa]].first;
        } else {
          XD.insert(to[toa]);
          pt++;
          ss += ev[*pt].first;
        }
      }
    }
    ta = (long long)di[s] - di[0] + (long long)di[n - 1] - di[0] + ba;
    cl();
    for (i = s - 1; i >= 0; i--) pp(i);
    memset(rev, 0, sizeof(rev));
    XD.clear();
    for (i = s + 1; i < n - mo - 1; i++) {
      XD.insert(to[i]);
    }
    for (i = n - mo; i <= bi; i++) {
      int toa = i - 1;
      if (i == n - mo) {
        XD.insert(to[toa]);
        pt = XD.begin();
        rev[ev[*pt].second] = 1;
      } else {
        if (to[toa] < *pt) {
          rev[toa] = 1;
        } else {
          XD.insert(to[toa]);
          pt++;
          rev[ev[*pt].second] = 1;
        }
      }
    }
    for (i = s + 1; i < bi; i = j + 1) {
      for (j = i; j < bi - 1 && rev[j]; j++)
        ;
      for (int q = j; q >= i; q--) pp(q);
    }
    for (i = n - 1; i >= bi; i--) {
      pp(i);
    }
    tr();
  }
}
inline void tryrl() {
  swap(lt, rt);
  s = n - 1 - s;
  int i, j;
  int l = di[n - 1];
  for (i = 0; i < n; i++) {
    di[i] = l - di[i];
  }
  for (i = 0, j = n - 1; i < j; i++, j--) swap(di[i], di[j]);
  for (i = 0; i < n - 1; i++) dd[i] = di[i + 1] - di[i];
  flag = 1;
  trylr();
}
int main() {
  int i, j, k;
  scanf("%d%d%d", &n, &lt, &s);
  rt = n - 1 - lt;
  s--;
  for (i = 0; i < n; i++) scanf("%d", &di[i]);
  for (i = 0; i < n - 1; i++) dd[i] = di[i + 1] - di[i];
  flag = 0;
  trylr();
  tryrl();
  if (ans == INF)
    puts("-1");
  else {
    printf("%I64d\n", ans);
    for (i = 0; i < n - 1; i++)
      printf("%d%c", ansf ? n - aid[i] : aid[i] + 1, (i == n - 2 ? '\n' : ' '));
  }
}