#include <bits/stdc++.h>
using namespace std;
int main() {
  int z, n, s, p;
  s = 0;
  p = 0;
  vector<int> b;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> z;
    b.push_back(z);
  }
  if (n == 1)
    cout << "-1" << endl;
  else {
    for (int i = 0; i < n - 1; i++) s = s + b[i];
    if (s == b[n - 1]) {
      if (b[n - 2] == b[n - 1])
        cout << "-1" << endl;
      else {
        cout << n - 1 << endl;
        for (int i = 1; i < n - 1; i++) cout << i << " ";
        cout << n << endl;
      }
    } else {
      cout << n - 1 << endl;
      for (int i = 1; i < n; i++) cout << i << " ";
      cout << endl;
    }
  }
  return 0;
}
