#include <bits/stdc++.h>
using namespace std;
int n;
char a[5005], b[5005];
int x[5005][5005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> a + 1 >> b + 1;
  for (int i = 1; i <= n; i++) x[a[i] - '0'][b[i] - '0']++;
  int A = 0, B = 0, C = 0, D = 0;
  for (int a = 0; a <= x[1][0]; a++)
    for (int b = 0; b <= x[0][1]; b++) {
      int p = x[0][1] + x[1][1] - a - b;
      if (p < 0 || p % 2 || a + b > n / 2) continue;
      int c = p / 2;
      int d = n / 2 - a - b - c;
      if (d >= 0 && x[0][0] >= d && x[1][1] >= c) {
        A = a, B = b, C = c, D = d;
        goto L1;
      }
    }
  puts("-1");
  return 0;
L1:;
  x[1][0] = A, x[0][1] = B, x[1][1] = C, x[0][0] = D;
  for (int i = 1; i <= n; i++)
    if (x[a[i] - '0'][b[i] - '0'])
      cout << i << ' ', x[a[i] - '0'][b[i] - '0']--;
}
