#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int fc = 0, fb = 0, fn = 0, fa = 0, n, i, j, acro = 0, clown = 0, both = 0,
      none = 0;
  string c, a;
  cin >> n;
  cin >> c;
  cin >> a;
  for (i = 0; a[i] != '\0'; i++) {
    if (c[i] == '0' && a[i] == '0') none += 1;
    if (c[i] == '1' && a[i] == '1') both += 1;
    if (c[i] == '0' && a[i] == '1') acro += 1;
    if (c[i] == '1' && a[i] == '0') clown += 1;
  }
  for (i = 0; i <= clown; i++) {
    for (j = 0; j <= both; j++) {
      fa = acro + both - i - 2 * j;
      if (fa >= 0 && fa <= acro) {
        fn = n / 2 - i - j - fa;
        if (fn >= 0 && fn <= none) {
          fb = j;
          fc = i;
          for (i = 0; a[i] != '\0'; i++) {
            if (c[i] == '0' && a[i] == '0' && fn > 0) {
              cout << i + 1 << " ";
              fn--;
            }
            if (c[i] == '1' && a[i] == '1' && fb > 0) {
              cout << i + 1 << " ";
              fb--;
            }
            if (c[i] == '0' && a[i] == '1' && fa > 0) {
              cout << i + 1 << " ";
              fa--;
            }
            if (c[i] == '1' && a[i] == '0' && fc > 0) {
              cout << i + 1 << " ";
              fc--;
            }
          }
          return 0;
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
