There are people in a row, numbered through in order. Between people and is a fence of height for . The cost of pairing people is . Partition all people into pairs, with each person in exactly one pair, and minimize the sum of the costs. Intervals representing pairs may overlap or cross.
The input is given in the following format:
Print the minimum possible sum of costs.