#include <bits/stdc++.h>
using namespace std;
pair<int, int> a[100010];
int n, limit, id[100010];
long long suma, sumb, sa, sb;
bool check() {
  sa = 0;
  sb = 0;
  for (int i = 1; i <= limit; i++) sa += a[id[i]].first, sb += a[id[i]].second;
  return (sa + sa > suma && sb + sb > sumb);
}
bool cmp(int i, int j) { return (a[i].first > a[j].first); }
int main() {
  if (fopen("a.txt", "r")) {
    freopen("a.txt", "r", stdin);
  } else
    ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i].first, suma += a[i].first;
  for (int i = 1; i <= n; i++) cin >> a[i].second, sumb += a[i].second;
  for (int i = 1; i <= n; i++) id[i] = i;
  sort(id + 1, id + n + 1, cmp);
  limit = (n >> 1) + 1;
  cout << limit << '\n';
  while (!check()) random_shuffle(id + 1, id + n + 1);
  for (int i = 1; i <= limit; i++) cout << id[i] << ' ';
}
