Sticks
The Law of the Jungle says very clearly that every wolf, having acquired a family, can leave his Pack. But as soon as his wolf cubs grow up and get on their feet, he must bring them to the Pack Council, which usually meets once a month, during the full moon, and show them to all the other wolves.
The Father Wolf waited till his cubs grew up and started to run a little. And in one of those nights when flock gathered, he led cubs, Mowgli and Mother Wolf to the Council Rock. It was the top of a hill dotted with large boulders, behind which could hide hundred of wolves. Akela, the great gray lone wolf, who was elected as a leader of the flock for the strength and agility pleaded with his rock:
— You know the law, the law you know! See also, wolves!
Father Wolf pushed into the middle of the circle the Frog Mowgli. Sitting on the ground, Mowgli laughed and began to play with sticks.
He came up with a fairly simple problem — he had to make with these sticks a rectangle of maximum area, to use all the sticks is not necessary.
Input
The first line contains the number of sticks . The second line contains the lengths of these sticks — the positive integers in the range from to .
Output
Print the maximum area of rectangle that can be constructed with this set of sticks, or number 0 if its impossible to construct a rectangle.