#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int MAXN = 1e5 + 7;
long long a[MAXN], b[MAXN], c[MAXN];
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) c[i] = i;
  long long suma = 0, sumb = 0;
  for (int i = 0; i < n; i++) cin >> a[i], suma += a[i];
  for (int i = 0; i < n; i++) cin >> b[i], sumb += b[i];
  while (1) {
    random_shuffle(c, c + n);
    long long A = 0, B = 0;
    for (int i = 0; i < n / 2 + 1; i++) A += a[c[i]], B += b[c[i]];
    if (2 * A > suma && 2 * B > sumb) break;
  }
  cout << n / 2 + 1 << endl;
  for (int i = 0; i < n / 2 + 1; i++) cout << c[i] + 1 << ' ';
  return 0;
}
