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 linf = 1e18 + 5;
int mod = (int)1e9 + 7;
const int logN = 18;
const int inf = 1e9 + 9;
const int N = 4e5 + 5;
int l, r, s, n, ans[N], a[N], ok[N];
multiset<int> small, big;
long long sum;
void rev() {
  swap(l, r);
  s = n - s + 1;
  for (int i = 1; i <= n; i++) a[i] = -a[i];
  reverse(a + 1, a + n + 1);
  for (int i = 1; i <= n; i++) ans[i] = n - ans[i] + 1;
}
void make(int s, int f) {
  int left = max(0, l - (s - 1) - (n - f));
  int use = l - left, u1 = 0, u2 = 0;
  if (s > 1) {
    u1++;
    use--;
  }
  if (f < n) {
    u2++;
    use--;
  }
  if (use && s > 2) {
    int g = min(use, s - 2);
    u1 += g;
    use -= g;
  }
  if (use && f < n - 1) {
    int g = min(use, n - f - 1);
    u2 += g;
    use -= g;
  }
  priority_queue<pair<int, int>, vector<pair<int, int> >,
                 greater<pair<int, int> > >
      q;
  for (int i = s + 2; i <= f - 1; i++)
    q.push(make_pair(2 * (a[i] - a[i - 1]), i));
  memset(ok, 0, sizeof ok);
  while (left--) {
    int t = q.top().second;
    q.pop();
    ok[t] = 3;
  }
  int w = 0;
  ans[++w] = s;
  for (int i = u1; i >= 1; i--) ans[++w] = i;
  for (int i = u1 + 1; i <= s - 1; i++) ans[++w] = i;
  for (int i = s + 1; i <= f - 1; i++) {
    int t = i + 1;
    if (ok[t] == 3) {
      while (ok[t] == 3) t++;
      t--;
      for (int j = t; j >= i; j--) ans[++w] = j;
      i = t;
    } else {
      ans[++w] = i;
    }
  }
  for (int i = f + u2; i <= n; i++) ans[++w] = i;
  for (int i = f + u2 - 1; i >= f; i--) ans[++w] = i;
}
void add(int x) {
  if (!small.size())
    big.insert(x);
  else if (x >= *small.rbegin())
    big.insert(x);
  else {
    sum += x;
    small.insert(x);
  }
}
long long get() {
  pair<long long, int> ans = make_pair(linf, 0);
  multiset<int> S;
  long long cur = 2ll * (a[s] - a[1]);
  int last = 0;
  sum = 0;
  small.clear();
  big.clear();
  for (int f = s + 1; f <= n; f++) {
    if (f > s + 2) add(2LL * (a[f - 1] - a[f - 2]));
    if ((s != 1) + (f != n) > l || (s > 1 && r == 0)) continue;
    int left = max(0, l - (s - 1) - (n - f));
    long long nv = (2ll * a[n] - a[s] - a[f]) + cur;
    if (left > small.size() + big.size()) continue;
    while (small.size() < left) {
      sum += *big.begin();
      small.insert(*big.begin());
      big.erase(big.begin());
    }
    while (small.size() > left) {
      sum -= *small.rbegin();
      big.insert(*small.rbegin());
      small.erase(small.find(*small.rbegin()));
    }
    ans = min(ans, make_pair(nv + sum, f));
  }
  if (ans.first < linf) make(s, ans.second);
  return ans.first;
}
int main() {
  scanf("%d %d %d", &n, &l, &s);
  r = n - l - 1;
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  long long l = get();
  rev();
  long long r = get();
  rev();
  if (l >= linf && r >= linf)
    puts("-1");
  else {
    if (l < r) {
      get();
      printf("%lld\n", l);
      for (int i = 2; i <= n; i++) printf("%d%c", ans[i], " \n"[i == n]);
    } else {
      printf("%lld\n", r);
      for (int i = 2; i <= n; i++) printf("%d%c", ans[i], " \n"[i == n]);
    }
  }
}