#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v[4];
  int n;
  string s1, s2;
  cin >> n;
  cin >> s1 >> s2;
  for (int i = 0; i < n; i++) {
    v[s1[i] - '0' + 2 * (s2[i] - '0')].push_back(i + 1);
  }
  for (int i = 0; i <= v[1].size(); i++) {
    for (int j = 0; j <= v[3].size(); j++) {
      int s = v[2].size() + v[3].size() - i - 2 * j;
      if (s >= 0 && s <= v[2].size()) {
        int sum = i + s + j;
        int k = n / 2 - sum;
        if (k >= 0 && k <= v[0].size()) {
          for (int p = 0; p < k; p++) {
            cout << v[0][p] << " ";
          }
          for (int p = 0; p < i; p++) {
            cout << v[1][p] << " ";
          }
          for (int p = 0; p < s; p++) {
            cout << v[2][p] << " ";
          }
          for (int p = 0; p < j; p++) {
            cout << v[3][p] << " ";
          }
          return 0;
        }
      }
    }
  }
  cout << -1;
  return 0;
}
