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;
int posicion[200000];
int ini;
int orden[200000];
int guia[200000];
bool compara(int i1, int i2) {
  return posicion[i1 + 1] - posicion[i1] < posicion[i2 + 1] - posicion[i2];
}
long long int tope = 1000000000000000000LL;
void generasolri(int le, int ri, int sol[200000], long long int &coste) {
  if (ini == 0) {
    coste = tope;
    return;
  }
  int isol = 0;
  if (ri <= n - 1 - ini) {
    for (int i = n - 1 - ri + 1; i <= n - 1; i++) sol[isol++] = i;
    for (int i = n - 1 - ri; i >= 0; i--)
      if (i != ini) sol[isol++] = i;
    coste = posicion[n - 1] - posicion[ini] + posicion[n - 1] - posicion[0];
  } else if (le == 1) {
    for (int i = ini + 1; i <= n - 1; i++) sol[isol++] = i;
    for (int i = 0; i <= ini - 1; i++) sol[isol++] = i;
    coste = posicion[n - 1] - posicion[ini] + posicion[n - 1] - posicion[0] +
            posicion[ini - 1] - posicion[0];
  } else {
    coste = posicion[n - 1] - posicion[ini] + posicion[n - 1] - posicion[0] +
            posicion[ri - (n - 1 - ini)] - posicion[0];
    int indexmin = ri - (n - 1 - ini);
    priority_queue<int> q;
    for (int i = indexmin + 1; i < ini - 1; i++)
      q.push(-(posicion[i + 1] - posicion[i]));
    long long int costeact = coste;
    for (int i = indexmin; i > 0; i--) {
      costeact -= posicion[i] - posicion[i - 1];
      q.push(-(posicion[i + 1] - posicion[i]));
      long long int valtop = -q.top();
      q.pop();
      costeact += 2 * valtop;
      if (costeact < coste) {
        coste = costeact;
        indexmin = i - 1;
      }
    }
    for (int i = ini + 1; i <= n - 1; i++) sol[isol++] = i;
    for (int i = 0; i <= indexmin; i++) guia[i] = 0;
    for (int i = indexmin + 1; i < ini; i++) guia[i] = -1;
    for (int i = indexmin + 1; i < ini - 1; i++) orden[i] = i;
    sort(orden + (indexmin + 1), orden + (ini - 1), compara);
    for (int i = 0; i < ri - (n - 1 - ini) - indexmin; i++)
      guia[orden[i + indexmin + 1]] = 1;
    int index = ini - 1;
    int direccion = -1;
    while (index != 0) {
      if (direccion == -1) {
        if (guia[index] == -1) {
          if (guia[index - 1] == 1) {
            index--;
          } else {
            guia[index] = 0;
            sol[isol++] = index;
            index--;
          }
        } else if (guia[index] == 1) {
          if (guia[index - 1] == 1) {
            index--;
          } else {
            guia[index] = 0;
            sol[isol++] = index;
            index++;
            direccion = 1;
          }
        } else {
          index--;
        }
      } else {
        if (guia[index] == -1) {
          sol[isol++] = index;
          guia[index] = 0;
          index--;
          direccion = -1;
        } else if (guia[index] == 1) {
          guia[index] = 0;
          sol[isol++] = index;
          index++;
        }
      }
    }
    for (int i = 0; i <= indexmin; i++) sol[isol++] = i;
  }
}
void escribesol(int coste, int sol[200000]) {
  cout << coste << endl;
  for (int i = 0; i < n - 1; i++) {
    if (i > 0) cout << " ";
    cout << sol[i] + 1;
  }
  cout << endl;
}
int le, ri;
int solri[200000];
int solle[200000];
long long int costeri;
long long int costele;
int main() {
  cin >> n >> le >> ini;
  ri = n - 1 - le;
  ini--;
  for (int i = 0; i < n; i++) scanf("%d", posicion + i);
  if (ini < n - 1 and ri == 0) {
    cout << -1 << endl;
    exit(0);
  }
  if (ini > 0 and le == 0) {
    cout << -1 << endl;
    exit(0);
  }
  generasolri(le, ri, solri, costeri);
  for (int i = 0; i < n; i++) posicion[i] = -posicion[i];
  reverse(posicion, posicion + n);
  ini = n - 1 - ini;
  generasolri(ri, le, solle, costele);
  if (costele < tope)
    for (int i = 0; i < n - 1; i++) solle[i] = n - 1 - solle[i];
  if (costeri < costele)
    escribesol(costeri, solri);
  else
    escribesol(costele, solle);
}