std::vector<int> find_order(int N);

std::vector<std::pair<int, int>> query(const std::vector<int>& order);