#include <bits/stdc++.h>
using namespace std;
#define _rep(i_,a_,b_) for(int i_ = (a_); i_ <= (b_); ++i_)
#define mid ((L+R) >> 1)
#define multiCase() int testCnt = in(); _rep(curCase,1,testCnt)
#ifdef ONLINE_JUDGE
#define debug(...) 0
#else
#define debug(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
#endif
using ll = long long;
using pii = pair<int,int>;
using ull = unsigned long long;
const int inf = 0x3f3f3f3f;
const ll inf64 = 0x3f3f3f3f3f3f3f3fll;
int in(void) { int x; scanf("%d", &x); return x; } ll inl(void) { ll x; scanf("%lld", &x); return x; }
void out(int x) { printf("%d ", x); } void outln(int x) { printf("%d\n", x); }
void out(unsigned x) { printf("%u ", x); } void outln(unsigned x) { printf("%u\n", x); }
void out(ll x) { printf("%lld ", x); } void outln(ll x) { printf("%lld\n", x); }
void out(ull x) { printf("%llu ", x); } void outln(ull x) { printf("%llu\n", x); }
template<typename T, typename U> void chkmax(T &a, const U &b) { if(b > a) a = b; }
template<typename T, typename U> void chkmin(T &a, const U &b) { if(b < a) a = b; }
const int kN = 150;
int n, a[kN]; map<int,int> mp;
mt19937 umi(901);
int main() {
n = in();
_rep(i,1,n) a[i] = in(), mp[a[i]] = i;
while(1) {
shuffle(a + 1, a + 1 + n, umi);
int s1 = 0, s2 = 0;
_rep(i,1,n) {
if(s1 > s2) s2 += a[i];
else s1 += a[i];
}
if(s1 == 1e9 || s2 == 1e9) {
s1 = s2 = 0;
vector<int> id;
_rep(i,1,n)
if(s1 > s2) s2 += a[i], id.emplace_back(a[i]);
else s1 += a[i];
outln(id.size());
for(auto &i : id) out(mp[i]); puts("");
exit(0);
}
}
return 0;
}
/*
a list of keywords
clear empty push_back pop_back push pop top front back
emplace_back emplace push_front pop_front insert erase
find count set reset bitset map vector string multiset
first second iterator prev next deque multimap reverse
sort begin end list modify query init check calc prime
putchar getchar puts scanf printf max min swap replace
make_pair make_tuple numeric_limits auto function null
*/