#include <bits/stdc++.h>
using namespace std;
const int iinf = 1e9 + 7;
const long long linf = 1ll << 60;
const double dinf = 1e60;
template <typename T>
inline void scf(T &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;
}
template <typename T1, typename T2>
void scf(T1 &x, T2 &y) {
  scf(x);
  return scf(y);
}
template <typename T1, typename T2, typename T3>
void scf(T1 &x, T2 &y, T3 &z) {
  scf(x);
  scf(y);
  return scf(z);
}
template <typename T1, typename T2, typename T3, typename T4>
void scf(T1 &x, T2 &y, T3 &z, T4 &w) {
  scf(x);
  scf(y);
  scf(z);
  return scf(w);
}
inline char mygetchar() {
  char c = getchar();
  while (c == ' ' || c == '\n') c = getchar();
  return c;
}
template <typename T>
void chkmax(T &x, const T &y) {
  if (y > x) x = y;
  return;
}
template <typename T>
void chkmin(T &x, const T &y) {
  if (y < x) x = y;
  return;
}
void TZL();
void RANK1();
int main() {
  TZL();
  RANK1();
  return 0;
}
const int N = 1e5 + 100;
int n, k;
long long a[N], b[N];
long long sa, sb;
int p[N];
void TZL() {
  scf(n);
  for (int i = 0, _end_ = (n); i < _end_; ++i) scf(a[i]), sa += a[i], p[i] = i;
  for (int i = 0, _end_ = (n); i < _end_; ++i) scf(b[i]), sb += b[i];
  k = (n / 2) + 1;
  if (sa & 1)
    sa >>= 1;
  else
    sa = (sa >> 1) + 1;
  if (sb & 1)
    sb >>= 1;
  else
    sb = (sb >> 1) + 1;
  return;
}
void RANK1() {
  srand(time(0));
  for (;;) {
    random_shuffle(p, p + n);
    long long fa = 0, fb = 0;
    for (int i = 0, _end_ = (k); i < _end_; ++i) fa += a[p[i]], fb += b[p[i]];
    if (fa > sa && fb > sb) {
      printf("%d\n", k);
      for (int i = 0, _end_ = (k); i < _end_; ++i) printf("%d ", p[i] + 1);
      return;
    }
  }
}
