There are quite a lot of ways to have fun with inflatable balloons. For example, you can fill them with water and see what happens.

Grigory and Andrew have the same opinion. So, once upon a time, they went to the shop and bought $n$ packets with inflatable balloons, where $i$-th of them has exactly $a_i$ balloons inside.

They want to divide the balloons among themselves. In addition, there are several conditions to hold:

  Do not rip the packets (both Grigory and Andrew should get unbroken packets);  Distribute all packets (every packet should be given to someone);  Give both Grigory and Andrew at least one packet;  To provide more fun, the total number of balloons in Grigory's packets should not be equal to the total number of balloons in Andrew's packets. 

Help them to divide the balloons or determine that it's impossible under these conditions.


-----Input-----

The first line of input contains a single integer $n$ ($1 \le n \le 10$) — the number of packets with balloons.

The second line contains $n$ integers: $a_1$, $a_2$, $\ldots$, $a_n$ ($1 \le a_i \le 1000$) — the number of balloons inside the corresponding packet.


-----Output-----

If it's impossible to divide the balloons satisfying the conditions above, print $-1$.

Otherwise, print an integer $k$ — the number of packets to give to Grigory followed by $k$ distinct integers from $1$ to $n$ — the indices of those. The order of packets doesn't matter.

If there are multiple ways to divide balloons, output any of them.


-----Examples-----
Input
3
1 2 1

Output
2
1 2

Input
2
5 5

Output
-1

Input
1
10

Output
-1



-----Note-----

In the first test Grigory gets $3$ balloons in total while Andrey gets $1$.

In the second test there's only one way to divide the packets which leads to equal numbers of balloons.

In the third test one of the boys won't get a packet at all.

Difficulty: interview

Starter code:

Solutions:


n = int(input())

tab = [int(x) for x in input().split()]

if n < 2 or (n == 2 and tab[0] == tab[1]):
    print(-1)
else:
    print(1)
    print(tab.index(min(tab)) + 1)



n = int(input())
a = [int(v) for v in input().split()]

if n == 1:
    print(-1)
elif n == 2:
    if a[0] == a[1]:
        print(-1)
    else:
        print(1)
        print(1)
else:
    print(1)

    mini = None
    minv = 10000000
    for i, v in enumerate(a):
        if v < minv:
            minv = v
            mini = i

    print(mini + 1)


t=int(input())
l=list(map(int,input().split()))
if len(l)==1:
    print("-1")
elif len(l)==2 and len(set(l))==1:
    print("-1")
else:
    print(1)
    print(l.index(min(l))+1)


#!/usr/bin/env python3

n = int(input().strip())
ais = list(map(int, input().strip().split()))

if n < 2 or (n == 2 and ais[0] == ais[1]):
	print(-1)
else:
	print(1)
	print(ais.index(min(ais)) + 1)


n = int(input())
v = list(map(int,input().split()))
for i in range(1,(1<<n)-1):
    s1, s2 = 0, 0
    b = 0
    for j in range(n):
        if i & 1<<j:
            s1 += v[j]
            b += 1
        else:
            s2 += v[j]
    if s1 != s2:
        print(b)
        for j in range(n):
            if i & 1<<j:
                print(j+1,end=' ')
        break
else:
    print(-1)


n = int(input())
a = list(map(int, input().split()))
if n == 1:
    print(-1)
    return

x = min(a)
t =  a.index(x)
d = []
c = []
for i in range(n):
    if i != t:
        d.append(i)
        c.append(a[i])
if sum(c) == x:
    print(-1)
else:
    print(1)
    print(t + 1)

n = int(input())
cl = list(map(int, input().split()))
if n<2:
    print(-1)
elif n==2:
    if cl[0]!=cl[1]:
        print('1')
        print('1')
    else:
        print(-1)
else:
    print(1)
    print(cl.index(min(cl))+1)

n = int(input())

A = input().split()

for i in range(0, n):
    A[i] = int(A[i])

if n==1 or (n==2 and A[0]==A[1]):
    print(-1)

else:
    minimum = min(A)

    for i in range(0, n):
        if A[i]==minimum:
            print(1)
            print(i+1)
            break


n = int(input())
a = list(map(int, input().split()))

if n == 1:
	print(-1)
else:
	x = min(a)
	y = sum(a) - x
	if x == y:
		print(-1)
	else:
		print(1)
		print(a.index(x) + 1)

# python3

def readline(): return list(map(int, input().split()))


def main():
    n, = readline()
    a = tuple(readline())

    if n == 1 or n == 2 and a[0] == a[1]:
        print(-1)
    else:
        print(1)
        print(a.index(min(a)) + 1)


main()


n=int(input())
arr=list(map(int,input().strip().split(' ')))
m=min(arr)
ind=arr.index(m)
if(n==1):
    print(-1)
elif(n==2 and arr[0]==arr[1]):
    print(-1)
else:
    print(1)
    print(ind+1)



def solve():
    n = int(input())
    a = [int(c) for c in input().split(" ")]
    total = sum(a)

    if n < 2: return None
    elif n == 2:
        if a[0] == a[1]: return None
        else: return (0,)
    else:
        for i in range(n):
            if a[i] != total - a[i]:
                return (i,)

result = solve()
if not result:
    print(-1)
else:
    print(len(result))
    for num in result:
        print(num+1, end = " ")


n = int(input())
b = []
s = input().split()
for i in range(n):
    b.append((int(s[i]), i + 1))
if n == 1:
    print(-1)
elif n == 2:
    if b[0][0] == b[1][0]:
        print(-1)
    else:
        print(1)
        print(1)
else:
    b.sort()
    print(1)
    print(b[0][1])

n=int(input())
l=list(map(int,input().strip().split()))
min1=1000000000000
index=11
for i in range(n):
	if l[i]<min1:
		min1=l[i]
		index=i
if n==1:
	print(-1)
elif n==2:
	if l[0]==l[1]:
		print(-1)
	else:
		print(1)
		print(index+1)
else:
	print(1)
	print(index+1)


n = int(input())
a = list(map(int, input().split()))

if len(a) == 1:
	print(-1)
elif len(a) == 2 and a[0] == a[1]:
	print(-1)
else:
	mina = min(a)
	for i, x in enumerate(a):
		if x == mina:
			print(1)
			print(i + 1)
			break

def f():
    n = int(input())
    a = list(map(int, input().split()))
    # print(n, a)
    s = sum(a)
    if n < 2:
        print(-1)
        return
    
    for i in range(n):
        if a[i] * 2 != s:
            print(1)
            print(i + 1)
            return
    print(-1)
    

f()

def main():
    input()
    numbers = list(map(int, input().split()))


    if len(numbers) < 2 or (len(numbers) == 2 and numbers[0] == numbers[1]):
        print(-1)
        return

    print(1)
    print(numbers.index(min(numbers)) + 1)
    
main()