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:
//Prafull Varshney
#include<bits/stdc++.h>
#define ll long long int
#define pll pair<ll,ll>
#define ln length
#define vl vector<ll>
#define vll vector<vector<ll>>
#define vpll vector<pair<ll,ll>>
#define pb push_back
#define mp make_pair
#define pq priority_queue
#define it iterator
#define ff first
#define ss second
#define bg begin
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define For(i,n) for(ll i=0;i<n;i++)
#define Forr(i,n) for(ll i=n-1;i>=0;i--)
#define st(v) sort(v.begin(),v.end())
#define mod 1000000007
#define inv(i,n,v) for(ll i=0;i<n;i++)cin>>v[i]
using namespace std;
/*
ll gcd(ll a,ll b)
{
    if(a<=0)
        return b;
    if(b<=0)
        return a;
    if(a>b)
    {
        if(a%b==0)
            return b;
        else
            return gcd(b,a%b);
    }
    else
    {
        if(b%a==0)
            return a;
        else
            return gcd(b%a,a);
    }
}
*/
/*
    vl p;
    void prime(ll n)
    {
        p.resize(n+1,0);
        p[0]=1;
        p[1]=1;
        for(ll i=2;i*i<=n;i++)
        {
            for(ll j=2;j*i<=n;j++)
                p[i*j]=1;
        }
    }
*/

//map<ll,ll> ans;
  /*  ll digit(ll n)
    {
        ll count=0,res=0,p=n;
        while(n>0)
        {
            res+=n%10;
            n/=10;
        }
        return res;
    }
*/
/*
    ll power(ll x,ll y)
    {
        ll res=1;
        while(y>0)
        {
            if(y%2)
                res=res*x%mod;
            x=x*x%mod;
            y>>=1;
        }
        return res;
    }
*/
/*
	ll multiinverse(ll n)
	{
		return power(n,mod-2)%mod;
	}
*/
/*
vector<bool> visit;
vll adj;
vll wt;
ll n,m;
void dfs(ll cur)
{
    visit[cur]=true;
    for(ll i=0;i<adj[cur].size();i++)
    {
        if(visit[adj[cur][i]]==false)
            dfs(adj[cur][i]);
    }
    return;
}
void read()
{
    cin>>n>>m;
    ll a,b,c;
    wt.clear();
    wt.resize(n);
    for(ll i=0;i<n;i++)
        wt[i].resize(n,INT_MAX);
    visit.clear();
    visit.resize(n,false);
    adj.clear();
    adj.resize(n);
    for(ll i=0;i<m;i++)
    {
        cin>>a>>b>>c;
        a--;
        b--;
        adj[a].pb(b);
        adj[b].pb(a);
        wt[a][b]=min(wt[a][b],c);
        wt[b][a]=wt[a][b];
    }
}
*/
bool knap(ll n,ll sum,vl &v)
{
    vector<vector<bool>> dp(n,vector<bool>(sum+1,false));
    dp[0][v[0]]=true;
    for(ll i=1;i<n;i++)
    {
        for(ll j=1;j<=sum;j++)
        {
            if(j>=v[i])
            {
                if(j==v[i])
                    dp[i][j]=true;
                else
                    dp[i][j]=dp[i-1][j]|dp[i-1][j-v[i]];
            }
        }
    }
    return dp[n-1][sum/2];
}
void main2()
{
    ll n,sum=0,p,q;
    cin>>n;
    vl v(n),v1(n);
    inv(i,n,v);
    for(ll i=0;i<n;i++)
    {
        v1[i]=v[i];
        sum+=v[i];
    }
    if(sum%2==1)
    {
        cout<<"0";
        return;
    }
    st(v);
    if(!knap(n,sum,v))
    {
        cout<<"0";
        return;
    }
    bool temp;
    for(ll i=0;i<n;i++)
    {
        p=v[i];
        v[i]=0;
        if((sum-p)%2==1)
            temp=false;
        else
            temp=knap(n,sum-p,v);
        if(temp==false)
        {
            cout<<"1\n";
            //cout<<p<<"\n";
            for(ll j=0;j<n;j++)
            {
                if(p==v1[j])
                {
                    cout<<j+1;
                    break;
                }
            }
            return;
        }
        v[i]=p;
    }
    return;
}
int main()
{
    fast;
    ll t=1;
    for(ll i=1;i<=t;i++)
    {
        main2();
    }
    return 0;
}