#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<pair<int, int> > v;
  int n, A[100005], m[100005] = {0}, B[100005];
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> A[i];
    v.push_back(make_pair(A[i], i));
  }
  for (int i = 0; i < n; ++i) {
    cin >> B[i];
  }
  sort(v.begin(), v.end());
  reverse(v.begin(), v.end());
  m[v[0].second] = 1;
  for (int i = 1; i < n - 1; i += 2) {
    if (B[v[i].second] > B[v[i + 1].second]) {
      m[v[i].second] = 1;
    } else {
      m[v[i + 1].second] = 1;
    }
  }
  if (!(n & 1)) m[v.back().second] = 1;
  cout << n / 2 + 1 << "\n";
  for (int i = 0; i < n; ++i) {
    if (m[i] == 1) cout << i + 1 << " ";
  }
}
