Problem: There are n students at Berland State University. Every student has two skills, each measured as a number: ai — the programming skill and bi — the sports skill.

It is announced that an Olympiad in programming and sports will be held soon. That's why Berland State University should choose two teams: one to take part in the programming track and one to take part in the sports track.

There should be exactly p students in the programming team and exactly s students in the sports team. A student can't be a member of both teams.

The university management considers that the strength of the university on the Olympiad is equal to the sum of two values: the programming team strength and the sports team strength. The strength of a team is the sum of skills of its members in the corresponding area, so the strength of the programming team is the sum of all ai and the strength of the sports team is the sum of all bi over corresponding team members.

Help Berland State University to compose two teams to maximize the total strength of the university on the Olympiad.

Input

The first line contains three positive integer numbers n, p and s (2 ≤ n ≤ 3000, p + s ≤ n) — the number of students, the size of the programming team and the size of the sports team.

The second line contains n positive integers a1, a2, ..., an (1 ≤ ai ≤ 3000), where ai is the programming skill of the i-th student.

The third line contains n positive integers b1, b2, ..., bn (1 ≤ bi ≤ 3000), where bi is the sports skill of the i-th student.

Output

In the first line, print the the maximum strength of the university on the Olympiad. In the second line, print p numbers — the members of the programming team. In the third line, print s numbers — the members of the sports team.

The students are numbered from 1 to n as they are given in the input. All numbers printed in the second and in the third lines should be distinct and can be printed in arbitrary order.

If there are multiple solutions, print any of them.

Examples

Input

5 2 2
1 3 4 5 2
5 3 2 1 4


Output

18
3 4 
1 5 


Input

4 2 2
10 8 8 3
10 7 9 4


Output

31
1 2 
3 4 


Input

5 3 1
5 2 5 1 7
6 3 1 6 3


Output

23
1 3 5 
4 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
struct edge {
  int dest, origcap, cap, cost, rev;
  edge() {}
  edge(int dest, int origcap, int cap, int cost, int rev)
      : dest(dest), origcap(origcap), cap(cap), cost(cost), rev(rev) {}
};
struct MinCostMaxFlow {
  vector<edge> adj[9005];
  int dis[9005], queued[9005];
  int cost, source, target, iter, cap;
  edge* pre[9005];
  MinCostMaxFlow() {}
  inline void AddEdge(int from, int to, int cap, int cost) {
    adj[from].push_back(edge{to, cap, cap, cost, (int)adj[to].size()});
    adj[to].push_back(edge{from, 0, 0, -cost, (int)adj[from].size() - 1});
  }
  inline bool spfa() {
    for (int i = int(0); i < int(9005); ++i) queued[i] = 0;
    fill(dis, dis + 9005, 10000000000007);
    queue<int> q;
    pre[source] = 0, pre[target] = 0, dis[source] = 0;
    q.emplace(source), queued[source] = 1;
    while (!q.empty()) {
      int x = q.front(), d = dis[x];
      q.pop(), queued[x] = 0;
      for (auto& e : adj[x]) {
        int y = e.dest, w = d + e.cost;
        if (e.cap < 1 || dis[y] <= w) continue;
        dis[y] = w, pre[y] = &e;
        if (!queued[y]) q.push(y), queued[y] = 1;
      }
    }
    edge* e = pre[target];
    if (!e) return 0;
    while (e) {
      edge& rev = adj[e->dest][e->rev];
      e->cap -= cap, rev.cap += cap;
      cost += cap * e->cost, e = pre[rev.dest];
    }
    return 1;
  }
  inline pair<int, int> GetMaxFlow(int S, int T) {
    cap = 1, source = S, target = T, cost = 0;
    while (spfa()) {
    }
    int totflow = 0;
    for (auto e : adj[source]) totflow += (e.origcap - e.cap);
    return {totflow, cost};
  }
};
int a[3005], b[3005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, p, s;
  cin >> n >> p >> s;
  for (int i = int(0); i < int(n); ++i) cin >> a[i];
  for (int i = int(0); i < int(n); ++i) cin >> b[i];
  MinCostMaxFlow mf;
  int sn = 9003, sr = 9004, k1 = 9001, k2 = 9002;
  for (int i = int(0); i < int(n); ++i) mf.AddEdge(i, sr, 1, 0);
  for (int i = int(0); i < int(n); ++i) {
    mf.AddEdge(2 * i + n, i, 1, -a[i]);
    mf.AddEdge(2 * i + 1 + n, i, 1, -b[i]);
    mf.AddEdge(k1, 2 * i + n, 1, 0);
    mf.AddEdge(k2, 2 * i + 1 + n, 1, 0);
  }
  mf.AddEdge(sn, k1, p, 0), mf.AddEdge(sn, k2, s, 0);
  pair<int, int> ans = mf.GetMaxFlow(sn, sr);
  vector<int> v[3005];
  cout << abs(ans.second) << endl;
  vector<int> froz1, froz2;
  for (int i = int(0); i < int(9000); ++i) {
    for (auto xd : mf.adj[i])
      if (xd.cap == 0 && i != k1 && i != k2 && i != sn && i >= n) {
        if (xd.dest == k1 || xd.dest == k2 || i == sr) continue;
        int val = i - n;
        (val & 1) ? froz2.push_back(val / 2) : froz1.push_back(val / 2);
      }
  }
  for (auto xd : froz1) cout << xd + 1 << " ";
  cout << endl;
  for (auto xd : froz2) cout << xd + 1 << " ";
  cout << endl;
  return 0;
}