#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n, a[1005], y[11], x[11], s, ss, mn = 999999, indx;
vector<int> v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x[i];
    y[i] = x[i];
    a[x[i]]++;
    s += x[i];
    if (x[i] < mn) {
      mn = x[i];
      indx = i;
    }
  }
  sort(x + 1, x + n + 1);
  s -= x[1];
  ss += x[1];
  if (s == ss || s == 0 || ss == 0) {
    cout << -1;
    return 0;
  }
  cout << n - 1 << endl;
  for (int i = 1; i <= n; i++) {
    if (i != indx) cout << i << ' ';
  }
}
