Problem: Baby Ehab was toying around with arrays. He has an array a of length n. He defines an array to be good if there's no way to partition it into 2 subsequences such that the sum of the elements in the first is equal to the sum of the elements in the second. Now he wants to remove the minimum number of elements in a so that it becomes a good array. Can you help him?

A sequence b is a subsequence of an array a if b can be obtained from a by deleting some (possibly zero or all) elements. A partitioning of an array is a way to divide it into 2 subsequences such that every element belongs to exactly one subsequence, so you must use all the elements, and you can't share any elements.

Input

The first line contains an integer n (2 ≤ n ≤ 100) — the length of the array a.

The second line contains n integers a_1, a_2, …, a_{n} (1 ≤ a_i ≤ 2000) — the elements of the array a.

Output

The first line should contain the minimum number of elements you need to remove.

The second line should contain the indices of the elements you're removing, separated by spaces.

We can show that an answer always exists. If there are multiple solutions, you can print any.

Examples

Input


4
6 3 9 12


Output


1
2

Input


2
1 2


Output


0

Note

In the first example, you can partition the array into [6,9] and [3,12], so you must remove at least 1 element. Removing 3 is sufficient.

In the second example, the array is already good, so you don't need to remove any elements.

Solution (in PYTHON3):

Solution:
def zip_sorted(a,b):

	# sorted  by a
	a,b = zip(*sorted(zip(a,b)))
	# sorted by b
	sorted(zip(a, b), key=lambda x: x[1])

	return a,b

def number_to_list(a):

	b = []

	while a>=1:

		c = a%10

		a = int(a/10)


		b.append(c)

	return list(reversed(b))

def str_list_to_int_list(a):


	a = list(map(int,a))

	return a

def make_1d_array(n,inti= 0):

	a = [inti for _ in range(n)]

	return a

def make_2d_array(n,m,inti= 0):

	a = [[inti for _ in range(m)] for _ in range(n)]

	return a

def make_3d_array(n,m,k,inti= 0):

	a = [[[inti for _ in range(k)] for _ in range(m)] for _ in range(n)]

	return a

def gcd(a,b):

	if(b==0): 
		return a

	else:
		return gcd(b,a%b);



import sys
input = sys.stdin.readline
I = lambda : list(map(int,input().split()))
S = lambda : list(map(str,input()))


# def solve(sum1,dp):

# 	prev = [[] for i in range(sum1+1)]

# 	for i in range(n):

# 		dp = [prev[j] for j in range(sum1+1)]

# 		for j in range(sum1+1):


'''


#########################
#	Optimizations
#
#	1)	loop from backwards thus only one loop required
#	2)	memeroization of only required index of ans
#
#########################

n, = I()
a   = I()
sum1 = sum(a)

if sum1%2==0:


	sum1 = sum1//2

	dp = [False]*(sum1+1)
	dp[0] = True
	# ans = [[] for j in range(sum1+1)]
	from collections import defaultdict
	ans = defaultdict(list)
	for i in range(n):
		for j in range(sum1,-1,-1):
			if j-a[i]>=0:
				if dp[j-a[i]]:
					if dp[j]:
						if len(ans[j])>(len(ans[j-a[i]])+1):
							ans[j] = ans[j-a[i]]+[i+1]
					else:
						ans[j] = ans[j-a[i]]+[i+1]
				dp[j] = dp[j] or dp[j-a[i]]

	# print(ans)

	idx = -1

	# print(dp[sum1],ans[sum1])

	if dp[sum1]:

		min1 = 10**10

		for i in ans:

			if dp[i]  and (i%2!=0 or dp[(2*sum1-i)//2]==False):

				if len(ans[i])<min1:

					min1 = len(ans[i])

					idx  = i

		print(len(ans[idx]))
		print(*ans[idx])

	else:

		print(0)

else:

	print(0)

'''

#########################
#	Optimizations
#
#	2)	memeroization of only required index of ans
#
#########################
# n, = I()
# a   = I()
# sum1 = sum(a)

# if sum1%2==0:


# 	sum1 = sum1//2

# 	prev = [False]*(sum1+1)
# 	prev[0] = True
# 	# ans = [[] for j in range(sum1+1)]
# 	from collections import defaultdict
# 	# ans = defaultdict(list)
# 	ans = defaultdict(list)
# 	for i in range(n):
# 		dp  = prev.copy()
# 		ans1= copy.deepcopy(ans)
# 		for j in range(sum1+1):
# 			if j-a[i]>=0:
# 				if prev[j-a[i]]:
# 					if dp[j]:
# 						if len(ans[j])>(len(ans[j-a[i]])+1):
# 							ans1[j] = ans[j-a[i]]+[i+1]
# 					else:
# 						ans1[j] = ans[j-a[i]]+[i+1]
# 				dp[j] = dp[j] or prev[j-a[i]]
# 		prev = dp.copy()
# 		ans  = ans1.copy()

# 	# print(ans)

# 	idx = -1

# 	# print(dp[sum1],ans[sum1])

# 	if dp[sum1]:

# 		min1 = 10**10

# 		for i in ans:

# 			if dp[i]  and (i%2!=0 or dp[(2*sum1-i)//2]==False):

# 				if len(ans[i])<min1:

# 					min1 = len(ans[i])

# 					idx  = i

# 		print(len(ans[idx]))
# 		print(*ans[idx])

# 	else:

# 		print(0)

# else:

# 	print(0)


#########################
#	Optimizations
#
#	1)	None
#
#########################

# n, = I()
# a   = I()
# sum1 = sum(a)

# if sum1%2==0:


# 	sum1 = sum1//2

# 	prev = [False]*(sum1+1)
# 	prev[0] = True
# 	prev_a = [[] for j in range(sum1+1)]
# 	# from collections import defaultdict
# 	for i in range(n):
# 		dp = prev.copy()
# 		# dp_a = [prev_a[j] for j in range(len(prev_a))] 										#PASS
# 		# dp_a = [prev_a[j].copy() for j in range(len(prev_a))]									#TLE
# 		# dp_a = [[prev_a[j][k] for k in range(len(prev_a[j]))] for j in range(len(prev_a))]	#TLE
# 		# dp_a = [prev_a[j][:] for j in range(len(prev_a))]										#TLE
# 		for j in range(sum1+1):
# 			if j-a[i]>=0:
# 				if prev[j-a[i]]:
# 					if dp[j]:
# 						if len(dp_a[j])>(len(prev_a[j-a[i]])+1):
# 							dp_a[j] = prev_a[j-a[i]]+[i+1]
# 					else:
# 						dp_a[j] = prev_a[j-a[i]]+[i+1]
# 				dp[j] = dp[j] or prev[j-a[i]]
# 		prev = dp.copy()
# 		# prev_a = [dp_a[j] for j in range(len(dp_a))]
# 		# prev_a = [dp_a[j].copy() for j in range(len(dp_a))]
# 		# prev_a = [[dp_a[j][k] for k in range(len(dp_a[j]))] for j in range(len(dp_a))]
# 		# prev_a = [dp_a[j][:] for j in range(len(dp_a))]

# 	# print(ans)

# 	idx = -1

# 	# print(dp[sum1],ans[sum1])

# 	if dp[sum1]:

# 		min1 = 10**10

# 		for i in range(sum1+1):

# 			if dp[i] and (i%2!=0 or dp[(2*sum1-i)//2]==False):

# 				if len(dp_a[i])<min1:

# 					min1 = len(dp_a[i])

# 					idx  = i

# 		print(len(dp_a[idx]))
# 		print(*dp_a[idx])

# 	else:

# 		print(0)

# else:

# 	print(0)



#########################
#
#	WA
#
#########################

# n, = I()
# a   = I()
# sum1 = sum(a)

# if sum1%2==0:


# 	sum1 = sum1//2

# 	dp = [False]*(sum1+1)
# 	dp[0] = True
# 	dp_a = [[] for j in range(sum1+1)]
# 	# from collections import defaultdict
# 	for i in range(n):
# 		for j in range(sum1,-1,-1):
# 			if j-a[i]>=0:
# 				if dp[j-a[i]]:
# 					if dp[j]:
# 						if len(dp_a[j])>(len(dp_a[j-a[i]])+1):
# 							dp_a[j] = dp_a[j-a[i]]+[i+1]
# 					else:
# 						dp_a[j] = dp_a[j-a[i]]+[i+1]
# 				dp[j] = dp[j] or dp[j-a[i]]

# 	# print(ans)

# 	idx = -1

# 	# print(dp[sum1],ans[sum1])

# 	if dp[sum1]:

# 		min1 = 10**10

# 		for i in range(sum1+1):

# 			if dp[i] and (i%2!=0 or dp[(2*sum1-i)//2]==False):

# 				if len(dp_a[i])<min1:

# 					min1 = len(dp_a[i])

# 					idx  = i

# 		print(len(dp_a[idx]))
# 		print(*dp_a[idx])

# 	else:

# 		print(0)

# else:

# 	print(0)


#########################
#
#	WA of contest
#	after changing it gives TLE 
#########################



# import sys
# input = sys.stdin.readline
# I = lambda : list(map(int,input().split()))
# S = lambda : list(map(str,input()))
 
 
# n, = I()
# a   = I()
# sum1 = sum(a)
# if sum1%2==0:
# 	sum1 = sum1//2
# 	prev = [[False,10**10] for i in range(sum1+1)]
# 	ans  = [[] for i in range(sum1+1)]
# 	prev[0] = [True,0]
# 	for i in range(n):
# 		dp = [[prev[j][k] for k in range(len(prev[j]))] for j in range(sum1+1)]
# 		ans1 = [[ans[j][k] for k in range(len(ans[j]))] for j in range(sum1+1)]
# 		for j in range(sum1+1):
# 			if (j-a[i])>=0:
# 				if prev[j-a[i]][0]:
# 					if dp[j][0]:
# 						if (prev[j-a[i]][1]+1)<dp[j][1]:
# 							ans1[j] = ans[j-a[i]]+[i+1]
# 					else:
# 						ans1[j] = ans[j-a[i]]+[i+1]
# 					dp[j][1] = min(dp[j][1],prev[j-a[i]][1]+1)
# 					dp[j][0] = True
# 		prev = [[dp[j][k] for k in range(len(dp[j]))]  for j in range(sum1+1)]
# 		ans = [[ans1[j][k] for k in range(len(ans1[j]))] for j in range(sum1+1)]
# 	if prev[sum1][0]:
# 		min1 = prev[sum1][1]
# 		idx = sum1
# 		for i in range(sum1+1):
# 			if prev[i][0] and ((2*sum1-i)%2!=0 or prev[((2*sum1)-i)//2][0]==False):
# 				if min1>prev[i][1]:
# 					idx = i
# 				min1 = min(min1,prev[i][1])
# 		print(len(ans[idx]))
# 		print(*ans[idx])
# 	else:
# 		print(0)
# else:
# 	print(0)


#########################
#
#	WA of contest
# pass

#########################

# n, = I()
# a   = I()
# sum1 = sum(a)
# if sum1%2==0:
# 	sum1 = sum1//2
# 	prev = [False for i in range(sum1+1)]
# 	ans  = [[] for i in range(sum1+1)]
# 	prev[0] = True
# 	for i in range(n):
# 		dp = prev.copy()
# 		ans1 = [ans[j] for j in range(sum1+1)]
# 		for j in range(sum1+1):
# 			if (j-a[i])>=0:
# 				if prev[j-a[i]]:
# 					if dp[j]:
# 						if (len(ans[j-a[i]])+1)<len(ans1[j]):
# 							ans1[j] = ans[j-a[i]]+[i+1]
# 					else:
# 						ans1[j] = ans[j-a[i]]+[i+1]
# 					dp[j] = True
# 		prev = dp.copy()
# 		ans = [ans1[j] for j in range(sum1+1)]
# 	if prev[sum1]:
# 		min1 = 10**10
# 		idx = -1
# 		for i in range(sum1+1):
# 			if prev[i] and ((2*sum1-i)%2!=0 or prev[((2*sum1)-i)//2]==False):
# 				if min1>len(ans[i]):
# 					idx = i
# 				min1 = min(min1,len(ans[i]))
# 		print(len(ans[idx]))
# 		print(*ans[idx])
# 	else:
# 		print(0)
# else:
# 	print(0)
 

# 1)	less loop while copying
# 2)	always intilize with -1
# 3)  


#########################
#
#	WA of contest
# pass

#########################

n, = I()
a   = I()
sum1 = sum(a)
if sum1%2==0:
	sum1 = sum1//2
	prev = [False for i in range(sum1+1)]
	prev1 = [0 for i in range(sum1+1)]
	ans  = [[] for i in range(sum1+1)]
	prev[0] = (True,0)
	for i in range(n):
		dp = prev.copy()
		dp1 = prev1.copy()
		ans1 = [ans[j] for j in range(sum1+1)]
		for j in range(sum1+1):
			if (j-a[i])>=0:
				if prev[j-a[i]]:
					if dp[j]:
						if (len(ans[j-a[i]])+1)<len(ans1[j]):
							ans1[j] = ans[j-a[i]]+[i+1]
					else:
						ans1[j] = ans[j-a[i]]+[i+1]
					dp[j] = True
		prev = dp.copy()
		prev1 = dp1.copy()
		ans = [ans1[j] for j in range(sum1+1)]
	if prev[sum1]:
		min1 = 10**10
		idx = -1
		for i in range(sum1+1):
			if prev[i] and ((2*sum1-i)%2!=0 or prev[((2*sum1)-i)//2]==False):
				if min1>len(ans[i]):
					idx = i
				min1 = min(min1,len(ans[i]))
		print(len(ans[idx]))
		print(*ans[idx])
	else:
		print(0)
else:
	print(0)