#include <bits/stdc++.h>
using namespace std;
pair<int, int> a[100005];
int b[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i].first, a[i].second = i;
  for (int i = 1; i <= n; i++) cin >> b[i];
  sort(a + 1, a + 1 + n);
  reverse(a + 1, a + 1 + n);
  cout << n / 2 + 1 << "\n" << a[1].second << " ";
  for (int i = 2; i <= n; i += 2)
    cout << (b[a[i].second] > b[a[i + 1].second] ? a[i].second
                                                 : a[i + 1].second)
         << " ";
  return cout << "\n", 0;
}
