func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1100;   template <class nmsl>   inline void read(nmsl &x) {     x = 0;     char ch = getchar(), w = 0;     while (!isdigit(ch)) w = (ch ==  - ), ch = getchar();     while (isdigit(ch)) x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar();     x = w ? -x : x;   }   long long n, m, a, b, c, val[N], tot, cnt, ans[N], tt;   int main() {     read(n);     for (register int i = 1; i <= n; i++) read(val[i]), tot += val[i];     tt = val[1];     for (register int i = 2; i <= n; i++)       if (val[i] * 2 <= val[1]) ans[++cnt] = i, tt += val[i];     if (tt * 2 > tot) {       cout << cnt + 1 << endl << 1 <<    ;       for (register int i = 1; i <= cnt; i++) cout << ans[i] <<    ;     } else       cout << 0;     return 0;   }   