#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int a[100100], b[100100], p[100100];
int myrand(int x) { return rand() % x; }
int main() {
  int n;
  while (~scanf("%d", &n)) {
    srand(time(NULL));
    long long suma = 0, sumb = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
      suma += a[i];
      p[i] = i;
    }
    for (int i = 1; i <= n; i++) {
      scanf("%d", &b[i]);
      sumb += b[i];
    }
    bool flag = 0;
    while (!flag) {
      random_shuffle(p + 1, p + n + 1, myrand);
      long long sum1 = 0, sum2 = 0;
      for (int i = 1; i <= n / 2 + 1; i++) {
        sum1 += a[p[i]];
        sum2 += b[p[i]];
        if (sum1 > suma / 2 && sum2 > sumb / 2) {
          flag = 1;
          break;
        }
      }
    }
    printf("%d\n", n / 2 + 1);
    for (int i = 1; i <= n / 2 + 1; i++)
      if (i == 1)
        printf("%d", p[i]);
      else
        printf(" %d", p[i]);
    puts("");
  }
  return 0;
}
