#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int a[2][n];
  int c[4] = {};
  char g;
  for (int i = 0; i < n; i++) {
    cin >> g;
    a[0][i] = g - '0';
  }
  for (int i = 0; i < n; i++) {
    cin >> g;
    a[1][i] = g - '0';
  }
  for (int i = 0; i < n; i++) c[a[0][i] + 2 * a[1][i]]++;
  for (int i = 0; i <= c[0]; i++) {
    for (int j = 0; j <= c[1]; j++) {
      int xd = i - (n / 2) + c[2] + c[3];
      int xc = (n / 2) - i - j - xd;
      if (xd > c[3] || xc > c[2] || xd < 0 || xc < 0) continue;
      for (int k = 0; k < n; k++) {
        if (!a[0][k] && !a[1][k] && i) {
          cout << k + 1 << " ";
          i--;
        } else if (a[0][k] && !a[1][k] && j) {
          cout << k + 1 << " ";
          j--;
        } else if (!a[0][k] && a[1][k] && xc) {
          cout << k + 1 << " ";
          xc--;
        } else if (a[0][k] && a[1][k] && xd) {
          cout << k + 1 << " ";
          xd--;
        }
      }
      return 0;
    }
  }
  cout << -1 << "\n";
  return 0;
  return 0;
}
