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>
using namespace std;
const long long mod = 1000000007;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
vector<pair<int, long long> > ans;
namespace mincost {
const int V = 5005, E = 120005, inf = 0x20202020, _inf = 0x20;
const long long inff = 1ll << 60;
long long dis[V], c[E], cost;
int q[V * 30], vis[V], fst[V], pre[V], nxt[E], y[E], f[E], S, T, flow, tot, tn;
void init(int s, int t, int Tn) {
  tot = 1;
  tn = Tn;
  for (int i = 1; i <= tn; i++) fst[i] = 0;
  S = s;
  T = t;
}
void add(int u, int v, int ff, long long cc) {
  tot++;
  y[tot] = v;
  nxt[tot] = fst[u];
  f[tot] = ff;
  c[tot] = cc;
  fst[u] = tot;
  tot++;
  y[tot] = u;
  nxt[tot] = fst[v];
  f[tot] = 0;
  c[tot] = -cc;
  fst[v] = tot;
}
bool spfa() {
  for (int i = 1; i <= tn; i++) dis[i] = inff, vis[i] = 0, pre[i] = 0;
  dis[S] = 0;
  q[1] = S;
  vis[S] = 1;
  int t = 1;
  for (int i = 1; i <= t; i++) {
    int u = q[i];
    for (int j = fst[u]; j; j = nxt[j]) {
      int v = y[j];
      if (f[j] && dis[v] > dis[u] + c[j]) {
        dis[v] = dis[u] + c[j];
        pre[v] = j;
        if (!vis[v]) vis[v] = 1, q[++t] = v;
      }
    }
    vis[u] = 0;
  }
  return dis[T] != inff;
}
void augment() {
  int p = T, _f = inf;
  while (pre[p]) _f = min(_f, f[pre[p]]), p = y[pre[p] ^ 1];
  flow += _f;
  cost += _f * dis[T];
  p = T;
  while (pre[p]) f[pre[p]] -= _f, f[pre[p] ^ 1] += _f, p = y[pre[p] ^ 1];
  ans.push_back(make_pair(flow, cost));
}
void solve() {
  flow = 0, cost = 0;
  while (spfa()) augment();
  cout << -cost << '\n';
}
}  // namespace mincost
int n, m, u, v, w, q, x;
int ss, t, s;
int a[3005], b[3005];
int p;
int main() {
  scanf("%d%d%d", &n, &p, &s);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= n; i++) scanf("%d", &b[i]);
  ss = n + 3;
  t = n + 4;
  mincost::init(ss, t, n + 4);
  for (int i = 1; i <= n; i++) mincost::add(ss, i, 1, 0);
  for (int i = 1; i <= n; i++) mincost::add(i, n + 1, 1, -a[i]);
  for (int i = 1; i <= n; i++) mincost::add(i, n + 2, 1, -b[i]);
  mincost::add(n + 1, t, p, 0);
  mincost::add(n + 2, t, s, 0);
  mincost::solve();
  for (int i = 1; i <= n; i++)
    for (int j = mincost::fst[i]; j; j = mincost::nxt[j])
      if (mincost::y[j] == n + 1 && mincost::f[j ^ 1] == 1) printf("%d ", i);
  puts("");
  for (int i = 1; i <= n; i++)
    for (int j = mincost::fst[i]; j; j = mincost::nxt[j])
      if (mincost::y[j] == n + 2 && mincost::f[j ^ 1] == 1) printf("%d ", i);
}