Problem: Petya loves football very much, especially when his parents aren't home. Each morning he comes to the yard, gathers his friends and they play all day. From time to time they have a break to have some food or do some chores (for example, water the flowers).

The key in football is to divide into teams fairly before the game begins. There are n boys playing football in the yard (including Petya), each boy's football playing skill is expressed with a non-negative characteristic ai (the larger it is, the better the boy plays). 

Let's denote the number of players in the first team as x, the number of players in the second team as y, the individual numbers of boys who play for the first team as pi and the individual numbers of boys who play for the second team as qi. Division n boys into two teams is considered fair if three conditions are fulfilled:

  * Each boy plays for exactly one team (x + y = n). 
  * The sizes of teams differ in no more than one (|x - y| ≤ 1). 
  * The total football playing skills for two teams differ in no more than by the value of skill the best player in the yard has. More formally: <image>



Your task is to help guys divide into two teams fairly. It is guaranteed that a fair division into two teams always exists.

Input

The first line contains the only integer n (2 ≤ n ≤ 105) which represents the number of guys in the yard. The next line contains n positive space-separated integers, ai (1 ≤ ai ≤ 104), the i-th number represents the i-th boy's playing skills. 

Output

On the first line print an integer x — the number of boys playing for the first team. On the second line print x integers — the individual numbers of boys playing for the first team. On the third line print an integer y — the number of boys playing for the second team, on the fourth line print y integers — the individual numbers of boys playing for the second team. Don't forget that you should fulfil all three conditions: x + y = n, |x - y| ≤ 1, and the condition that limits the total skills.

If there are multiple ways to solve the problem, print any of them.

The boys are numbered starting from one in the order in which their skills are given in the input data. You are allowed to print individual numbers of boys who belong to the same team in any order.

Examples

Input

3
1 2 1


Output

2
1 2 
1
3 


Input

5
2 3 3 1 1


Output

3
4 1 3 
2
5 2 

Note

Let's consider the first sample test. There we send the first and the second boy to the first team and the third boy to the second team. Let's check all three conditions of a fair division. The first limitation is fulfilled (all boys play), the second limitation on the sizes of groups (|2 - 1| = 1 ≤ 1) is fulfilled, the third limitation on the difference in skills ((2 + 1) - (1) = 2 ≤ 2) is fulfilled.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int in() {
  int a;
  scanf("%d", &a);
  return a;
}
double din() {
  double a;
  scanf("%lf", &a);
  return a;
}
int gcd(int a, int b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
const double eps = 1e-7;
const double pi = 3.14159265358979323;
const int INF = 999999999;
int qq(int a, int b) {
  int c = a + b;
  int res = 0;
  while (c % 10 == 0) {
    ++res;
    c /= 10;
  }
  return res;
}
bool isa(char a) {
  if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u')
    return true;
  else
    return false;
}
bool isprime(int a) {
  for (int i = 2; i * i <= a; ++i) {
    if (a % i == 0) return false;
  }
  return true;
}
struct Node {
  Node *l, *r, *p;
  int x, y;
  vector<Node *> a;
  vector<char> u;
  Node *use() {
    if (u.empty()) u.assign(a.size(), 0);
    for (int i = 0; i < u.size(); ++i) {
      if (!u[i]) {
        u[i] = 1;
        return a[i];
      }
    }
    return NULL;
  }
  Node() {}
  Node(int xx, int yy) {
    x = xx;
    y = yy;
    l = NULL;
    r = NULL;
    p = NULL;
  }
  Node(int xx, int yy, Node *pp) {
    x = xx;
    y = yy;
    p = pp;
    l = NULL;
    r = NULL;
  }
  void setp(Node *pp) { p = pp; }
};
class Treap {
 private:
  Node *root, *l;
  void insert(Node *&r, Node *a) {
    if (r == NULL) {
      r = a;
      return;
    }
    if (a->y < r->y) {
      split(r, a->x, a->l, a->r);
      r = a;
    } else {
      if (a->x < r->x)
        insert(r->l, a);
      else
        insert(r->r, a);
    }
  }
  void split(Node *a, int X, Node *&l, Node *&r) {
    if (a == NULL) {
      l = r = NULL;
      return;
    }
    if (a->x > X) {
      split(a->l, X, l, a->l);
      r = a;
    } else {
      split(a->r, X, a->r, r);
      l = a;
    }
  }
  void built(Node *r, Node *t) {
    while (r->y > t->y && r->p != NULL) {
      r = r->p;
    }
    if (r->p == NULL && t->y < r->y) {
      r->p = t;
      t->l = r;
      root = t;
      root->p = NULL;
      l = t;
      return;
    }
    t->l = r->r;
    r->r = t;
    t->p = r;
    t->l->p = t;
    l = t;
  }

 public:
  Treap() {
    root = NULL;
    l = NULL;
  }
  void built(pair<int, int> a) {
    Node *n = new Node(a.first, a.second);
    if (root == NULL) {
      root = n;
      l = n;
      return;
    }
    if (l->y < n->y) {
      l->r = n;
      n->p = l;
      l = n;
      return;
    }
    built(l, n);
  }
  void insert(pair<int, int> a) {
    Node *node = new Node(a.first, a.second);
    insert(root, node);
  }
  Node *getRoot() { return root; }
};
struct nod {
  nod *l, *r;
  long long sum;
};
int min(int x, int y) { return y ^ ((x ^ y) & -(x < y)); }
int max(int x, int y) { return x ^ ((x ^ y) & -(x < y)); }
int aa(int a) { return log10(a); }
string tos(int a) {
  string r = "";
  while (a > 0) {
    r += a % 10 + '0';
    a /= 10;
  }
  reverse(r.begin(), r.end());
  return r;
}
string ma(string a) {
  string r = "";
  for (int i = 0; i < a.size(); ++i) {
    if (a[i] == '4' || a[i] == '7') r += a[i];
  }
  return r;
}
bool com(pair<double, int> a, pair<double, int> b) {
  if (fabs(a.first - b.first) <= eps)
    return a.second < b.second;
  else
    return a.first > b.first;
}
long double nextApproximation(long double x) {
  return x - (3 * x + cos(x) + 1) / (3 - sin(x));
}
bool exit() { exit(0); }
double dist(int x1, int y1, int x2, int y2) {
  return sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
}
struct state {
  int link, len;
  map<char, int> next;
};
vector<vector<int>> gg;
map<int, int> m;
vector<char> u;
bool dfs(int v, int f) {
  u[v] = 1;
  if (v == f) return true;
  for (int i = 0; i < gg[v].size(); ++i) {
    if (!u[gg[v][i]] && dfs(gg[v][i], f)) {
      cout << m[gg[v][i]] << ' ';
      return 1;
    }
  }
  return 0;
}
map<char, int> mau;
int aa(string a, int p) {
  int res = 0;
  int po = 1;
  for (int i = a.size() - 1; i >= 0; --i, po *= p) {
    res += po * mau[a[i]];
  }
  return res;
}
int main() {
  int n = in();
  vector<pair<int, int>> a;
  int i = 0;
  while (a.size() < n) a.push_back(make_pair(in(), i++));
  sort(a.begin(), a.end());
  cout << (n + 1) / 2 << endl;
  for (int i = 0; i < n; i += 2) {
    cout << a[i].second + 1 << ' ';
  }
  cout << endl << n / 2 << endl;
  for (int i = 1; i < n; i += 2) {
    cout << a[i].second + 1 << ' ';
  }
  return 0;
}