#include <bits/stdc++.h>
using namespace std;
char c[5005];
char a[5005];
int main() {
  int i, j, k, n, aa = 0, aa2, cc = 0, cc2, ac = 0, ac2, z = 0, z2;
  scanf("%d", &n);
  scanf("%s", c);
  scanf("%s", a);
  for (i = 0; i < n; i++) {
    if (c[i] == '1' && a[i] == '0') {
      cc++;
    } else if (c[i] == '0' && a[i] == '1') {
      aa++;
    } else if (c[i] == '1' && a[i] == '1') {
      ac++;
    } else {
      z++;
    }
  }
  k = min(n / 2, aa + ac);
  for (cc2 = min(k, cc); cc2 >= 0; cc2--) {
    for (aa2 = 0; aa2 <= min(k - cc2, aa); aa2++) {
      ac2 = aa + ac - cc2 - aa2;
      if (ac2 & 1) continue;
      ac2 >>= 1;
      if (ac2 > ac || ac2 < 0) continue;
      z2 = n / 2 - aa2 - cc2 - ac2;
      if (z2 > z || z2 < 0) continue;
      for (i = 0; i < n; i++) {
        if (c[i] == '1' && a[i] == '0' && cc2 > 0) {
          printf("%d ", i + 1);
          cc2--;
        } else if (c[i] == '0' && a[i] == '1' && aa2 > 0) {
          printf("%d ", i + 1);
          aa2--;
        } else if (c[i] == '1' && a[i] == '1' && ac2 > 0) {
          printf("%d ", i + 1);
          ac2--;
        } else if (c[i] == '0' && a[i] == '0' && z2 > 0) {
          printf("%d ", i + 1);
          z2--;
        }
      }
      printf("\n");
      return 0;
    }
  }
  printf("-1\n");
  return 0;
}
