#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string a, b;
  cin >> a;
  cin >> b;
  int x, y, z, w;
  x = y = z = w = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] == '0' && b[i] == '0')
      x++;
    else if (a[i] == '0' && b[i] == '1')
      y++;
    else if (a[i] == '1' && b[i] == '0')
      z++;
    else
      w++;
  }
  int found = 0;
  for (int r = 0; r <= z; r++) {
    for (int s = 0; s <= w && r + s <= n / 2; s++) {
      int q = y + w - r - 2 * s;
      int p = n / 2 - q - r - s;
      if (p >= 0 && p <= n / 2 && q >= 0 && q <= n / 2 && p <= x && q <= y) {
        found = 1;
        for (int i = 0; i < n; i++) {
          if (a[i] == '0' && b[i] == '0' && p != 0) {
            printf("%d ", i + 1);
            p--;
          } else if (a[i] == '0' && b[i] == '1' && q != 0) {
            printf("%d ", i + 1);
            q--;
          } else if (a[i] == '1' && b[i] == '0' && r != 0) {
            printf("%d ", i + 1);
            r--;
          } else if (a[i] == '1' && b[i] == '1' && s != 0) {
            printf("%d ", i + 1);
            s--;
          }
        }
      }
      if (found) break;
    }
    if (found) break;
  }
  if (!found) {
    printf("-1");
  }
  return 0;
}
