#include <bits/stdc++.h>
using namespace std;
pair<pair<int, int>, int> x[100005];
int n;
long long sa, sb;
int as[100005], bs[100005];
bool valid() {
  long long a = 0, b = 0;
  for (int i = 0, ThxDem = n / 2 + 1; i < ThxDem; ++i)
    a += x[i].first.first, b += x[i].first.second;
  return 2 * a > sa && 2 * b > sb;
}
int main() {
  scanf("%d", &n);
  for (int i = 0, ThxDem = n; i < ThxDem; ++i) scanf("%d", as + i), sa += as[i];
  for (int i = 0, ThxDem = n; i < ThxDem; ++i) scanf("%d", bs + i), sb += bs[i];
  for (int i = 0, ThxDem = n; i < ThxDem; ++i)
    x[i] = make_pair(make_pair(as[i], bs[i]), i);
  while (!valid()) random_shuffle(x, x + n);
  printf("%d\n", n / 2 + 1);
  for (int i = 0, ThxDem = n / 2 + 1; i < ThxDem; ++i) {
    if (i) putchar(' ');
    printf("%d", x[i].second + 1);
  }
  puts("");
  return 0;
}
