There is one Pepero stick of each length . Arrange them in a row, and let be the length at position . Define for . Find an arrangement minimizing .
The input is given in the following format:
Print of an optimal arrangement, separated by spaces. Each integer from to must appear exactly once. If there are multiple optimal arrangements, print any of them. Do not print the minimum value itself.