#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string a, b;
  cin >> a >> b;
  int na = 0, nb = 0, nc = 0, nd = 0;
  vector<int> av, bv, cv, dv;
  for (int i = 0; i < n; i++) {
    if (a[i] == '0') {
      if (b[i] == '0') {
        na++;
        av.push_back(i);
      } else {
        nb++;
        bv.push_back(i);
      }
    } else {
      if (b[i] == '0') {
        nc++;
        cv.push_back(i);
      } else {
        nd++;
        dv.push_back(i);
      }
    }
  }
  bool done = false;
  for (int b = 0; b <= nb; b++) {
    for (int d = 0; d <= nd; d++) {
      int c = nb + nd - 2 * d - b;
      int a = (n / 2) - b - c - d;
      if (a >= 0 && c >= 0 && a <= na && c <= nc) {
        done = true;
        int k = 0;
        while (a > 0) {
          cout << av[k++] + 1 << " ";
          a--;
        }
        k = 0;
        while (b > 0) {
          cout << bv[k++] + 1 << " ";
          b--;
        }
        k = 0;
        while (c > 0) {
          cout << cv[k++] + 1 << " ";
          c--;
        }
        k = 0;
        while (d > 0) {
          cout << dv[k++] + 1 << " ";
          d--;
        }
        return 0;
      }
    }
  }
  if (!done) cout << "-1" << endl;
}
