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;
template <typename T, typename U>
inline void smin(T &a, const U &b) {
  if (a > b) a = b;
}
template <typename T, typename U>
inline void smax(T &a, const U &b) {
  if (a < b) a = b;
}
template <class T>
inline void gn(T &first) {
  char c, sg = 0;
  while (c = getchar(), (c > '9' || c < '0') && c != '-')
    ;
  for ((c == '-' ? sg = 1, c = getchar() : 0), first = 0; c >= '0' && c <= '9';
       c = getchar())
    first = (first << 1) + (first << 3) + c - '0';
  if (sg) first = -first;
}
template <class T1, class T2>
inline void gn(T1 &x1, T2 &x2) {
  gn(x1), gn(x2);
}
int power(int a, int b, int m, int ans = 1) {
  for (; b; b >>= 1, a = 1LL * a * a % m)
    if (b & 1) ans = 1LL * ans * a % m;
  return ans;
}
int first[100100], vst[100100];
int main() {
  int n, l, s;
  cin >> n >> l >> s;
  int r = n - 1 - l;
  for (int i = 1; i <= n; i++) gn(first[i]);
  if (l == 0) {
    if (s > 1) return puts("-1"), 0;
    printf("%d\n", first[n]);
    for (int i = 1; ++i <= n;) printf("%d ", i);
    return 0;
  }
  if (r == 0) {
    if (s < n) return puts("-1"), 0;
    printf("%d\n", first[n]);
    for (int i = n; --i;) printf("%d ", i);
    return 0;
  }
  pair<long long, int> ans = pair<long long, int>(1LL << 60, 0);
  if (l <= s - 1)
    smin(ans, pair<long long, int>(first[s] + first[n], n));
  else {
    int k = l - (s - 1);
    long long sum = first[s] + first[n] + (first[n] - first[n - k]);
    int cur = n - k;
    smin(ans, pair<long long, int>(sum, cur));
    if (cur > s + 1) {
      multiset<int> S;
      for (int i = s + 2; i < cur; i++) S.insert(first[i] - first[i - 1]);
      for (; cur < n; cur++) {
        S.insert(first[cur] - first[cur - 1]);
        sum += *S.begin() * 2 - (first[cur + 1] - first[cur]);
        S.erase(S.begin());
        smin(ans, pair<long long, int>(sum, cur + 1));
      }
    }
  }
  if (r <= n - s)
    smin(ans, pair<long long, int>(first[n] * 2 - first[s], 1));
  else {
    int k = r - (n - s);
    long long sum = first[n] - first[s] + first[n] + first[1 + k];
    int cur = 1 + k;
    smin(ans, pair<long long, int>(sum, cur));
    if (cur < s - 1) {
      multiset<int> S;
      for (int i = s - 1; i > cur + 1; i--) S.insert(first[i] - first[i - 1]);
      for (; cur > 1; cur--) {
        S.insert(first[cur + 1] - first[cur]);
        sum += *S.begin() * 2 - (first[cur] - first[cur - 1]);
        S.erase(S.begin());
        smin(ans, pair<long long, int>(sum, cur - 1));
      }
    }
  }
  cout << ans.first << endl;
  if (ans.second > s) {
    if (l <= s - 1) {
      for (int i = l; i >= 1; i--) printf("%d ", i);
      for (int i = l + 1; i <= n; i++)
        if (i != s) printf("%d ", i);
      return 0;
    }
    int k = l - (s - 1);
    long long sum = first[s] + first[n] + (first[n] - first[n - k]);
    int cur = n - k;
    if (sum == ans.first) {
      for (int i = s; --i;) printf("%d ", i);
      for (int i = s + 1; i < cur; i++) printf("%d ", i);
      for (int i = n; i >= cur; i--) printf("%d ", i);
      return 0;
    }
    set<pair<long long, int> > S;
    for (int i = s + 2; i < cur; i++)
      S.insert(pair<long long, int>(first[i] - first[i - 1], i));
    for (; cur < n; cur++) {
      S.insert(pair<long long, int>(first[cur] - first[cur - 1], cur));
      sum += S.begin()->first * 2 - (first[cur + 1] - first[cur]);
      vst[S.begin()->second] = 1;
      S.erase(S.begin());
      if (sum == ans.first) {
        for (int i = s; --i;) printf("%d ", i);
        for (int j = s + 1, k = j + 1; j <= cur;) {
          while (k <= cur && vst[k]) k++;
          for (int t = k - 1; t >= j; t--) printf("%d ", t);
          j = k++;
        }
        for (int i = n; i > cur; i--) printf("%d ", i);
        return 0;
      }
    }
  } else {
    if (r <= n - s) {
      for (int i = n - r + 1; i <= n; i++) printf("%d ", i);
      for (int i = n - r; i >= 1; i--)
        if (i != s) printf("%d ", i);
      return 0;
    }
    int k = r - (n - s);
    long long sum = first[n] - first[s] + first[n] + first[1 + k];
    int cur = 1 + k;
    if (sum == ans.first) {
      for (int i = s + 1; i <= n; i++) printf("%d ", i);
      for (int i = s - 1; i > cur; i--) printf("%d ", i);
      for (int i = 1; i <= cur; i++) printf("%d ", i);
      return 0;
    }
    set<pair<long long, int> > S;
    for (int i = s - 1; i > cur + 1; i--)
      S.insert(pair<long long, int>(first[i] - first[i - 1], i));
    for (; cur > 1; cur--) {
      S.insert(pair<long long, int>(first[cur + 1] - first[cur], cur + 1));
      sum += S.begin()->first * 2 - (first[cur] - first[cur - 1]);
      vst[S.begin()->second] = 1;
      S.erase(S.begin());
      if (sum == ans.first) {
        for (int i = s + 1; i <= n; i++) printf("%d ", i);
        for (int j = s - 1, k = j; j >= cur;) {
          while (k >= cur && vst[k]) k--;
          for (int t = k; t <= j; t++) printf("%d ", t);
          j = --k;
        }
        for (int i = 1; i < cur; i++) printf("%d ", i);
        return 0;
      }
    }
  }
  return 0;
}