#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 22;
long long n, s1, s2, a[N], b[N], c[N];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i], s1 += a[i];
  for (int i = 1; i <= n; i++) cin >> b[i], s2 += b[i];
  for (int i = 1; i <= n; i++) c[i] = i;
  while (22) {
    random_shuffle(c + 1, c + 1 + n);
    long long r1 = 0, r2 = 0;
    for (int i = 1; i <= n / 2 + 1; i++) {
      r1 += a[c[i]];
      r2 += b[c[i]];
    }
    if (2 * r1 >= s1 && 2 * r2 >= s2) {
      cout << n / 2 + 1 << endl;
      for (int i = 1; i <= n / 2 + 1; i++) cout << c[i] << " ";
      return 0;
    }
  }
}
