#include <bits/stdc++.h>
using namespace std;
istream &operator>>(istream &in, vector<int> &arr) {
  for (auto &i : arr) in >> i;
  return in;
}
int n;
vector<int> a, b;
long long sa, sb;
bool check(vector<int> &ind) {
  long long ca = 0, cb = 0;
  for (int i = 0; i < n / 2 + 1; i++) ca += a[ind[i]], cb += b[ind[i]];
  return (2 * ca > sa && 2 * cb > sb);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  a.resize(n);
  b.resize(n);
  cin >> a >> b;
  for (int i = 0; i < n; i++) sa += (long long)a[i], sb += (long long)b[i];
  vector<int> ind(n);
  for (int i = 0; i < n; i++) ind[i] = i;
  while (!check(ind)) random_shuffle(ind.begin(), ind.end());
  cout << n / 2 + 1 << "\n";
  for (int i = 0; i < n / 2 + 1; i++) cout << ind[i] + 1 << " ";
  return 0;
}
