There are people on a circle of circumference . The number is even. Person is at clockwise coordinate from a fixed origin. Repeat the following action until no people remain.
Other people's positions do not change. The distance between and is . Find the minimum total distance and output an action sequence attaining it.
The input is given in the following format:
Print the minimum total distance on the first line. On each of the next lines, print the original indices chosen in that action, in execution order. Indices range from to . Both people must still be present, and must be a nearest other remaining person to at that moment. If there are multiple solutions, print any of them.