#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, w = 0, na = 0, nb = 0, nc = 0, nd = 0;
  string cc, aa;
  cin >> n >> cc >> aa;
  for (long long i = 0; i < n; i++) {
    if (cc[i] == '0' && aa[i] == '0') na++;
    if (cc[i] == '1' && aa[i] == '0') nb++;
    if (cc[i] == '0' && aa[i] == '1') nc++;
    if (cc[i] == '1' && aa[i] == '1') nd++;
  }
  vector<long long> ans;
  for (int y = 0; y <= nb; y++) {
    for (int w = 0; w <= nd; w++) {
      int z = (nc + nd - y - 2 * w);
      if (z >= 0 && z <= nc) {
        int x = (n / 2 - y - z - w);
        if (x >= 0 && x <= na) {
          ans.push_back(x);
          ans.push_back(y);
          ans.push_back(z);
          ans.push_back(w);
          break;
        }
      }
    }
    if (ans.size() == 4) break;
  }
  if (ans.size() != 4)
    cout << -1;
  else {
    for (int i = 0; i < n; i++) {
      if (cc[i] == '0' && aa[i] == '0' && ans[0] > 0) {
        ans[0]--;
        cout << i + 1 << " ";
      }
      if (cc[i] == '1' && aa[i] == '0' && ans[1] > 0) {
        ans[1]--;
        cout << i + 1 << " ";
      }
      if (cc[i] == '0' && aa[i] == '1' && ans[2] > 0) {
        ans[2]--;
        cout << i + 1 << " ";
      }
      if (cc[i] == '1' && aa[i] == '1' && ans[3] > 0) {
        ans[3]--;
        cout << i + 1 << " ";
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long q = 1;
  while (q--) {
    solve();
  }
  return 0;
}
