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;
multiset<long long> secik;
multiset<long long>::iterator it;
int n, l, p, s, koniec_akt;
int wyn[100007];
long long t[100007];
pair<long long, int> kraw[100007];
bool czy_skok[100007];
void siekaj_rozwa(int start, int koniec) {
  int ile = 0, ile_kraw = 0;
  int ile_kon = n - 2;
  for (int i = 0; i <= (n); i++) czy_skok[i] = false;
  int ile_l = l;
  int ile_na_prawo = koniec == n - 1 ? 0 : 1;
  if (ile_l > start) {
    ile_l -= start;
    for (int i = start - 1; i >= (0); i--) wyn[ile++] = i;
  } else {
    for (int i = ile_l - ile_na_prawo - 1; i >= (0); i--) wyn[ile++] = i;
    for (int i = ile_l - ile_na_prawo; i <= (s - 1); i++) wyn[ile++] = i;
    ile_l = ile_na_prawo;
  }
  if (ile_l > n - 1 - koniec) {
    ile_l -= (n - 1 - koniec);
    for (int i = koniec; i <= (n - 1); i++) wyn[ile_kon--] = i;
  } else {
    for (int i = 0; i < (ile_l); i++) wyn[ile_kon--] = koniec + i;
    for (int i = n - 1; i >= (koniec + ile_l); i--) wyn[ile_kon--] = i;
    ile_l = 0;
  }
  for (int i = s + 1; i <= (koniec - 2); i++)
    kraw[ile_kraw++] = make_pair(t[i + 1] - t[i], i);
  sort(kraw, kraw + ile_kraw);
  for (int i = 0; i < (ile_l); i++) czy_skok[kraw[i].second] = true;
  int wsk = start + 1;
  while (wsk < koniec) {
    if (czy_skok[wsk]) {
      int pom = wsk;
      while (czy_skok[pom]) ++pom;
      for (int i = pom; i >= (wsk); i--) wyn[ile++] = i;
      wsk = pom + 1;
    } else
      wyn[ile++] = wsk++;
  }
}
long long siekaj_na_prawo() {
  secik.clear();
  if (s == n - 1 || p == 0) return 1000000000000000000LL;
  if (l == 0) {
    if (s == 0) {
      koniec_akt = n - 1;
      return t[n - 1] - t[0];
    }
    return 1000000000000000000LL;
  }
  long long res = 1000000000000000000LL;
  long long sum = t[n - 1] - t[0] + t[s] - t[0];
  if (l == 1) {
    koniec_akt = n - 1;
    if (s == 0) {
      long long najm_kr = 1000000000000000000LL;
      for (int i = 1; i <= (n - 3); i++)
        najm_kr = min(najm_kr, t[i + 1] - t[i]);
      if (t[n - 1] - t[n - 2] < 2 * najm_kr) koniec_akt = n - 2;
      res = sum + min(t[n - 1] - t[n - 2], 2 * najm_kr);
    } else
      res = sum;
    return res;
  }
  if (p == 1) {
    res = min(res, sum + t[n - 1] - t[s + 1]);
    koniec_akt = s + 1;
    return res;
  }
  long long sum_secik = 0;
  int ile_l = max(0, l - s);
  int kon = n - 1;
  for (int i = s + 1; i <= (kon - 2); i++) {
    if (i - s <= ile_l) {
      secik.insert(t[i + 1] - t[i]);
      sum_secik += t[i + 1] - t[i];
    } else if (!secik.empty()) {
      it = secik.end();
      --it;
      if (*it > t[i + 1] - t[i]) {
        sum_secik -= *it - t[i + 1] + t[i];
        secik.erase(it);
        secik.insert(t[i + 1] - t[i]);
      }
    }
  }
  while (ile_l) {
    if (res > sum + 2 * sum_secik) {
      res = sum + 2 * sum_secik;
      koniec_akt = kon;
    }
    sum += t[kon] - t[kon - 1];
    --kon;
    --ile_l;
    it = secik.find(t[kon] - t[kon - 1]);
    if (it != secik.end()) {
      secik.erase(it);
      sum_secik -= t[kon] - t[kon - 1];
    } else {
      it = secik.end();
      --it;
      sum_secik -= *it;
      secik.erase(it);
    }
  }
  if (res > sum + 2 * sum_secik) {
    res = sum + 2 * sum_secik;
    koniec_akt = kon;
  }
  return res;
}
int main() {
  long long res = 1000000000000000000LL;
  scanf("%d%d%d", &n, &l, &s);
  --s;
  p = n - 1 - l;
  for (int i = 0; i < (n); i++) scanf("%lld", &t[i]);
  res = siekaj_na_prawo();
  siekaj_rozwa(s, koniec_akt);
  swap(l, p);
  s = n - 1 - s;
  for (int i = 0; i < (n); i++) t[i] = t[n - 1] - t[i];
  for (int i = 0; i < (n / 2); i++) swap(t[i], t[n - 1 - i]);
  long long pom = siekaj_na_prawo();
  if (res > pom) {
    siekaj_rozwa(s, koniec_akt);
    for (int i = 0; i < (n - 1); i++) wyn[i] = n - 1 - wyn[i];
    res = pom;
  }
  if (res == 1000000000000000000LL)
    puts("-1");
  else {
    printf("%lld\n", res);
    for (int i = 0; i < (n - 1); i++) printf("%d ", wyn[i] + 1);
    puts("");
  }
  return 0;
}