#include <iostream>
#include <vector>
using namespace std;
int n,t;
vector <int> solve(vector <int> a) {
	vector <int> b(0);
	for (int i = a.size() - 2; i >= 0; i -= 4) {
		b.push_back(i+1);
		if (i != 0) {
			b.push_back(i);
		}
	}
	b.push_back(a.size());
	for (int i = a.size() - 4; i >= 0; i -= 4) {
		b.push_back(i+1);
		if (i != 0) {
			b.push_back(i);
		}
	}
	return b;
}