#include <bits/stdc++.h>
using namespace std;
#define ll long long

ll n, a[105], sum;
bool dp[200005];

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    cin >> n;

    for (ll i = 1; i <= n; i++){
        cin >> a[i];
        sum += a[i];
    }

    if (sum % 2){
        cout << 0 << '\n';
        return 0;
    }

    dp[0] = 1;

    for (ll i = 1; i <= n; i++){
        for (ll j = sum / 2; j >= a[i]; j--){
            if (dp[j - a[i]]) dp[j] = 1;
        }
    }

    if (!dp[sum / 2]){
        cout << 0 << '\n';
        return 0;
    }

    ll ans = 1, mn = LLONG_MAX;

    for (ll i = 1; i <= n; i++){
        ll x = a[i], cnt = 0;

        while (x % 2 == 0){
            x /= 2;
            cnt++;
        }

        if (cnt < mn){
            mn = cnt;
            ans = i;
        }
    }

    cout << 1 << '\n';
    cout << ans << '\n';

    return 0;
}
