#include <bits/stdc++.h>
using namespace std;
long long n, i, j, k, l, a[10000001], mn = 1e9, r;
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) cin >> a[i], mn = min(a[i], mn);
  if (n == 1) {
    cout << -1 << endl;
    return 0;
  }
  if (n == 2 and a[1] == a[2]) {
    cout << -1 << endl;
    return 0;
  }
  for (i = 1; i <= n; i++) {
    if (a[i] == mn) {
      r = i;
      break;
    }
  }
  cout << n - 1 << endl;
  for (i = 1; i <= n; i++)
    if (i != r) cout << i << " ";
  return 0;
}
