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 int N = 1e5 + 10;
const long long INF = 1e18;
long long x[N];
bool R[N];
pair<long long, vector<int> > get(vector<int> &v, int r) {
  int n = v.size();
  long long res = INF, id = -1;
  vector<int> ans;
  if (n == 0) return make_pair(0, ans);
  multiset<int> st;
  for (int i = 0; i < n - 2; i++) st.insert(abs(x[v[i]] - x[v[i + 1]]));
  while ((int)st.size() > r) {
    auto it = st.end();
    it--;
    st.erase(it);
  }
  long long sum1 = 0, sum2 = 0;
  for (auto x : st) sum1 += x;
  for (int i = 0; i <= (n - 1); i++) {
    if (2LL * sum1 + sum2 < res) {
      res = 2LL * sum1 + sum2;
      id = i;
    }
    if (i == n - 1) break;
    sum2 += abs(x[v[n - i - 1]] - x[v[n - i - 2]]);
    if (n - i - 3 >= 0 && (int)st.size() > 0) {
      auto it = st.find(abs(x[v[n - i - 3]] - x[v[n - i - 2]]));
      if (it != st.end()) sum1 -= *it, st.erase(it);
      while ((int)st.size() >= r - i) {
        auto it = st.end();
        it--;
        sum1 -= *it;
        st.erase(it);
      }
    }
  }
  set<pair<int, int> > st2;
  for (int i = 0; i < n - id - 2; i++)
    st2.insert(make_pair(abs(x[v[i]] - x[v[i + 1]]), i));
  while ((int)st2.size() > r - id) {
    auto it = st2.end();
    it--;
    st2.erase(it);
  }
  for (auto x : st2) {
    int p = x.second;
    R[p] = 1;
  }
  for (int i = n - 2; i >= n - id - 1; i--) R[i] = 1;
  int i = 0;
  while (i < n) {
    int j = i;
    while (j < n && R[j] == 1) j++;
    for (int k = j; k >= i; k--) ans.push_back(v[k]);
    i = j + 1;
  }
  return make_pair(res, ans);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, l, s;
  cin >> n >> l >> s;
  for (int i = 1; i <= n; i++) cin >> x[i];
  if (l == 0 && s != 1) {
    cout << -1 << endl;
    return 0;
  }
  if (l == n - 1 && s != n) {
    cout << -1 << endl;
    return 0;
  }
  if (l > s - 1) {
    long long ans1 = 2LL * x[n] - x[s] - x[1];
    vector<int> v;
    for (int i = s + 1; i <= n; i++) v.push_back(i);
    auto X = get(v, l - (s - 1));
    X.first += x[s] + x[n] - 2LL * x[0];
    int r = n - 1 - l;
    if (X.first >= ans1) {
      cout << ans1 << endl;
      for (int i = s + 1; i < s + r; i++) cout << i << ' ';
      if (s != n) cout << n << ' ';
      for (int i = n - 1; i >= s + r; i--) cout << i << ' ';
      for (int i = s - 1; i >= 1; i--) cout << i << ' ';
      cout << endl;
      return 0;
    } else {
      cout << X.first << endl;
      for (int i = s - 1; i >= 1; i--) cout << i << ' ';
      for (auto i : X.second) cout << i << ' ';
      cout << endl;
      return 0;
    }
  } else {
    long long ans1 = x[n] + x[s] - 2LL * x[0];
    vector<int> v;
    for (int i = s - 1; i >= 1; i--) v.push_back(i);
    auto X = get(v, s - l - 1);
    X.first += 2LL * x[n] - x[s] - x[0];
    if (X.first >= ans1) {
      cout << ans1 << endl;
      for (int i = s - 1; i > s - l; i--) cout << i << ' ';
      if (s != 1) cout << 1 << ' ';
      for (int i = 2; i <= s - l; i++) cout << i << ' ';
      for (int i = s + 1; i <= n; i++) cout << i << ' ';
      cout << endl;
      return 0;
    } else {
      cout << X.first << endl;
      for (int i = s + 1; i <= n; i++) cout << i << ' ';
      for (auto i : X.second) cout << i << ' ';
      cout << endl;
      return 0;
    }
  }
}