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 CPP):

Solution:
#include <bits/stdc++.h>
#define ll long long
#define endl "\n"
#define pb push_back
#define mp make_pair
#define ms(v,x) memset(v,x,sizeof(v))
#define td(v) v.begin(),v.end()
#define rtd(v) v.rbegin(),v.rend()
#define ff first
#define ss second
using namespace std;

std::mt19937 rng((int) std::chrono::steady_clock::now().time_since_epoch().count());

const ll INF=1ll<<60;
const ll mod=1000000007;
const long double PI=acosl(-1);

ll binpow(ll a, ll b) {
	if (b == 0)
		return 1;
	ll res = binpow(a, b / 2);
	if (b % 2)
		return res * res * a;
	else
		return res * res;
}

bool e_composto[1000100];
vector<ll> primo;


void crivo(ll n){
	e_composto[1] = 1;
	ll s=0;
	for(ll i = 2; i <= n; ++i){
		if(!e_composto[i]){
			primo.pb(i);
			for(ll j = i; j <= n; j+=i){
				e_composto[j] = 1;
			}
		}
	}
	return;
}

void solve(){
	ll n,m,i,j,minimo=30,ind=-1,sum=0,impar=-1;
	cin>>n;
	vector<ll> vet(n);
	for(i=0;i<n;i++){
		cin>>vet[i];
		ll cnt=0,aux=vet[i];
		while(aux%2==0){
			cnt++;
			aux/=2;
		}
		if(cnt<minimo) {
			minimo=cnt; 
			ind=i;
		}
		sum+=vet[i];
	}
	if(sum%2){
		cout<<0<<endl;
		return;
	}
	sort(td(vet));
	vector<int> pos(200002,0);
	pos[0]=1;
	for(j=0;j<n;j++){
		for(i=200001;i>=vet[j];i--){
			if(pos[i-vet[j]]==1) pos[i]=1;
		}
	}
	if(pos[sum/2]==1) cout<<1<<endl<<ind+1<<endl;
	else cout<<0<<endl;

}

 
int main() {
	ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
	// freopen("lcm.in", "r", stdin);
	// freopen("hidden.out", "w", stdout);
	ll t=1;
	crivo(100500);
	// cin>>t;
	// ll aux=t;
	while(t--){
		// cout<<"CASE #"<<aux-t<<": ";
		solve();
	}
}