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 + 5;
int n, l, s, cnt, x[N], p[N];
vector<int> ans;
long long total;
bool rev;
void add_to_answer(int e) {
  total += abs(x[e] - x[ans.back()]);
  cnt -= e < ans.back();
  ans.push_back(e);
}
long long calc() {
  cnt = l, total = 0;
  ans.clear(), ans.push_back(s);
  if ((!l && s) || (l == n - 1 && s < n - 1)) return total = 1e18;
  for (int i = min(s - 1, l - 1); ~i; i--) add_to_answer(i);
  for (int i = min(s, l); i < s; i++) add_to_answer(i);
  int k = n - s - 2;
  if (k < 1) {
    if (s + 1 < n) add_to_answer(s + 1);
    return total;
  }
  iota(p, p + k, s + 2);
  sort(p, p + k,
       [](int i, int j) { return x[i] - x[i - 1] < x[j] - x[j - 1]; });
  int result = 0, cur = 0;
  set<pair<int, int>> S;
  set<int> T;
  priority_queue<pair<int, int>> Q;
  for (; cur < min(cnt, k); cur++)
    if (p[cur] < n - 1) {
      int w = x[p[cur]] - x[p[cur] - 1];
      result += w, S.insert({w, p[cur]});
    }
  int idx = -1;
  long long mn = 1e18;
  if (S.size() == cnt) mn = result << 1, idx = n;
  for (int i = n - 1, sum = 0; i - 1 > s; i--) {
    if (!S.empty() && S.count({x[i - 1] - x[i - 2], i - 1})) {
      result -= x[i - 1] - x[i - 2];
      S.erase({x[i - 1] - x[i - 2], i - 1});
    }
    for (sum += x[i] - x[i - 1]; !S.empty() && n - i + S.size() > cnt;
         S.erase(--S.end())) {
      pair<int, int> x = *--S.end();
      result -= x.first;
      Q.push({-x.first, x.second});
    }
    for (; !Q.empty() && n - i + S.size() < cnt; Q.pop())
      if (Q.top().second < i - 1) {
        pair<int, int> x = Q.top();
        result -= x.first;
        S.insert({-x.first, x.second});
      }
    for (; n - i + S.size() < cnt && cur < k; cur++)
      if (p[cur] < i - 1) {
        int w = x[p[cur]] - x[p[cur] - 1];
        result += w, S.insert({w, p[cur]});
      }
    if (n - i + S.size() == cnt && 2LL * result + sum < mn)
      mn = 2LL * result + sum, idx = i;
  }
  for (int i = 0; T.size() < cnt - n + idx; i++)
    if (p[i] < idx - 1) T.insert(p[i]);
  for (int i = s + 1; i < idx - 1; i++)
    if (!T.count(i + 1)) {
      add_to_answer(i);
      if (T.count(i))
        for (int j = i - 1; T.count(j + 1); j--) add_to_answer(j);
    }
  for (int i = n - 1; i >= idx - 1; i--) add_to_answer(i);
  return total;
}
void reverse_problem() {
  s = n - s - 1, l = n - l - 1;
  for (int i = 0; i < n; i++) x[i] = x[n - 1] - x[i];
  reverse(x, x + n), rev ^= true;
}
void read_input() {
  cin >> n >> l >> s;
  s--;
  for (int i = 0; i < n; i++) cin >> x[i];
}
void solve() {
  long long temp = calc();
  reverse_problem();
  if (temp < calc()) reverse_problem();
}
void write_output() {
  if (calc() == 1e18) {
    cout << -1;
    return;
  }
  cout << total << endl;
  for (auto p : ans)
    if (p ^ s) cout << (rev ? n - p : p + 1) << ' ';
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  read_input(), solve(), write_output();
  return 0;
}