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 long long inf = 1ll << 50;
const int maxn = 100005;
int n, l, s, pos[maxn];
int x[maxn], ans1[maxn];
int y[maxn], ans2[maxn];
pair<int, int> ord[maxn];
bool tag[maxn];
long long solve(int n, int l, int s, int x[], int ans[]) {
  int cnt = 0, tot = 0;
  if (l < s) {
    for (int i = s - 1; i > s - l; i--) ans[++cnt] = i;
    for (int i = 1; i <= s - l; i++)
      if (i != s) ans[++cnt] = i;
    for (int i = s + 1; i <= n; i++) ans[++cnt] = i;
    return (long long)x[n] - x[1] + x[s] - x[1];
  }
  l -= s - 1;
  if (l == n - s - 1) {
    for (int i = s - 1; i >= 1; i--) ans[++cnt] = i;
    for (int i = n; i > s; i--) ans[++cnt] = i;
    return (long long)x[n] - x[1] + x[s] - x[1] + x[n] - x[s + 1];
  }
  for (int i = s + 1; i < n - 1; i++)
    ord[++tot] = pair<int, int>(x[i + 1] - x[i], i + 1);
  sort(ord + 1, ord + tot + 1);
  for (int i = 1; i <= tot; i++) pos[ord[i].second] = i;
  long long minv = inf, sum = 0;
  int e, j;
  for (int i = 1; i <= l; i++) sum += ord[i].first;
  minv = sum * 2;
  e = n;
  j = l;
  for (int i = n - 1, p = l; i >= n - l; i--) {
    if (pos[i] <= p)
      sum -= ord[pos[i]].first;
    else
      sum -= ord[p--].first;
    while (p && ord[p].second >= i) --p;
    if (sum * 2 + x[n] - x[i] < minv) {
      minv = sum * 2 + x[n] - x[i];
      e = i;
      j = p;
    }
  }
  memset(tag, false, sizeof tag);
  for (int i = s - 1; i >= 1; i--) ans[++cnt] = i;
  for (int i = s + 2; i < e; i++)
    if (pos[i] <= j) tag[i] = true;
  for (int i = s + 1; i < e; i++)
    if (!tag[i + 1])
      ans[++cnt] = i;
    else {
      int tmp = i + 1;
      while (tag[tmp]) ++tmp;
      for (int j = tmp - 1; j > i; j--) ans[++cnt] = j;
      ans[++cnt] = i;
      i = tmp - 1;
    }
  for (int i = n; i >= e; i--) ans[++cnt] = i;
  return (long long)x[n] - x[1] + x[s] - x[1] + minv;
}
int main() {
  scanf("%d %d %d", &n, &l, &s);
  for (int i = 1; i <= n; i++) scanf("%d", &x[i]);
  for (int i = 1; i <= n; i++) y[i] = -x[n - i + 1];
  if (s != 1 && l == 0) {
    puts("-1");
    return 0;
  }
  if (s != n && l == n - 1) {
    puts("-1");
    return 0;
  }
  long long cost1 = solve(n, l, s, x, ans1);
  long long cost2 = solve(n, n - 1 - l, n - s + 1, y, ans2);
  if (cost1 < cost2) {
    printf("%lld\n", cost1);
    for (int j = 1; j < n; j++) printf("%d ", ans1[j]);
  } else {
    printf("%lld\n", cost2);
    for (int j = 1; j < n; j++) printf("%d ", n - ans2[j] + 1);
  }
  return 0;
}