#include <bits/stdc++.h>
using namespace std;
long long int __xor(long long int a, long long int b) { return a ^ b; }
long long int __and(long long int a, long long int b) { return a & b; }
long long int __or(long long int a, long long int b) { return a | b; }
long long int ai[1000], pi[1000];
int main() {
  long long int b, c, x, y, z, t, i, j, k = 1e18, l1 = 0, l2, m, n, c1 = 0,
                                        c2 = 0, q;
  scanf("%lld", &n);
  long long int a[n];
  for (i = 0; i < n; i++) {
    scanf("%lld", &a[i]);
    if (k > a[i]) {
      k = a[i];
      l1 = i;
    }
  }
  if (n == 1 || (n == 2 && a[0] == a[1]))
    cout << -1;
  else {
    cout << n - 1 << "\n";
    for (j = 1; j <= n; j++) {
      if (j != l1 + 1) cout << j << " ";
    }
  }
  return 0;
}
