#include <bits/stdc++.h>
using namespace std;
long long a[111111], b[111111];
int ans[111111];
inline void scf(long long &x) {
  bool f = 0;
  x = 0;
  char c = getchar();
  while ((c < '0' || c > '9') && c != '-') c = getchar();
  if (c == '-') {
    f = 1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  if (f) x = -x;
  return;
}
int main() {
  srand(time(0));
  int N;
  cin >> N;
  long long suma = 0, sumb = 0;
  for (int i = 0; i < N; i++) {
    scf(a[i]);
    suma += a[i];
    ans[i] = i;
  }
  for (int i = 0; i < N; i++) {
    scf(b[i]);
    sumb += b[i];
  }
  int ansk = N / 2 + (N % 2);
  for (;;) {
    random_shuffle(ans, ans + N);
    long long sum1 = 0, sum2 = 0;
    for (int i = 0; i < ansk; i++) {
      sum1 += a[ans[i]];
      sum2 += b[ans[i]];
    }
    if (2 * sum1 > suma && 2 * sum2 > sumb) {
      printf("%d\n", ansk);
      for (int j = 0; j < ansk; j++) printf("%d ", ans[j] + 1);
      return 0;
    }
  }
}
