#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; ll dp[100100][2]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; vector A(n); rep(i,n) cin>>A[i]; cout< B; rep(i,n) if(A[i]<=n/2) B.push_back(i); if(n%2==1){ ll ans=0; for(int i=1;i