#include <bits/stdc++.h>
using namespace std;
string cc, aa;
int n;
int main() {
  cin >> n;
  cin >> cc >> aa;
  int c = 0, a = 0, y = 0, m = 0;
  for (int i = 0; i < n; i++) {
    if (cc[i] == '0' && aa[i] == '1')
      a++;
    else if (cc[i] == '1' && aa[i] == '0')
      c++;
    else if (cc[i] == '1' && aa[i] == '1')
      y++;
    else
      m++;
  }
  int m1, y1, a1, c1, flag = 0;
  for (int i = 0; i <= y; i++) {
    int x = n / 2 + i - a - y;
    for (int j = 0; j <= a; j++) {
      int l = n / 2 - x - i - j;
      if (l >= 0 && l <= c && x <= m && x >= 0) {
        a1 = j, y1 = i, m1 = x, c1 = l;
        flag = 1;
        break;
      }
    }
    if (flag) break;
  }
  if (!flag) {
    cout << -1 << endl;
    return 0;
  }
  int t = 0;
  for (int i = 0; i < n; i++) {
    if (a1 && (aa[i] == '1' && cc[i] == '0')) {
      a1--;
      if (t == 0)
        cout << i + 1;
      else
        cout << " " << i + 1;
      t++;
    } else if (c1 && (aa[i] == '0' && cc[i] == '1')) {
      c1--;
      if (t == 0)
        cout << i + 1;
      else
        cout << " " << i + 1;
      t++;
    } else if (y1 && (aa[i] == '1' && cc[i] == '1')) {
      y1--;
      if (t == 0)
        cout << i + 1;
      else
        cout << " " << i + 1;
      t++;
    } else if (m1 && (aa[i] == '0' && cc[i] == '0')) {
      m1--;
      if (t == 0)
        cout << i + 1;
      else
        cout << " " << i + 1;
      t++;
    }
  }
  cout << endl;
}
