#include <bits/stdc++.h>
using namespace std;
template <class TH>
void _dbg(const char *sdbg, TH h) {
  cerr << sdbg << "=" << h << "\n";
}
template <class TH, class... TA>
void _dbg(const char *sdbg, TH h, TA... a) {
  while (*sdbg != ',') cerr << *sdbg++;
  cerr << "=" << h << ",";
  _dbg(sdbg + 1, a...);
}
long long test;
long long n;
long long t1[100007], t2[100007];
long long sumA, sumB;
vector<long long> g;
bool check() {
  long long res1 = 0, res2 = 0;
  for (long long i = 0; i < (n / 2 + 1); ++i) {
    res1 += t1[g[i]];
    res2 += t2[g[i]];
  }
  if (res1 * 2 > sumA && res2 * 2 > sumB)
    return true;
  else
    return false;
}
void solve() {
  cin >> n;
  for (long long i = 1; i <= (n); ++i) {
    cin >> t1[i];
    sumA += t1[i];
  }
  for (long long i = 1; i <= (n); ++i) {
    cin >> t2[i];
    sumB += t2[i];
  }
  for (long long i = 1; i <= (n); ++i) {
    g.push_back(i);
  }
  for (long long i = 1; i <= (1000); ++i) {
    random_shuffle(g.begin(), g.end());
    if (check()) {
      cout << n / 2 + 1 << '\n';
      for (long long i = 0; i < (n / 2 + 1); ++i) cout << g[i] << " ";
      return;
    }
  }
  return;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.precision(10);
  cout << fixed;
  test = 1;
  while (test--) {
    solve();
  }
  return 0;
}
