Apartment floor plan

No attempts yetTime limit2sMemory limit64 MB

Problem

Stanko works as an architect at a construction company. His current task is the ground plan of one floor of a residential building. He has to split the floor with walls so that every apartment is a rectangle, and every wall he builds is parallel to a side of the building.

In the ground plan the floor is a large rectangle of size N×MN \times M, and an apartment is a smaller rectangle of size a×ba \times b placed inside it. The numbers aa and bb are integers.

The apartments have to cover the floor completely, so every point of the floor belongs to some apartment. Two apartments must not overlap, but they may touch.

Rooms must not be dark, so every apartment needs a window. Therefore each apartment has to keep part of one of its sides on an edge of the rectangle that represents the floor, and the window goes there.

The apartments also have to have area close to KK. The deviation of an apartment of size a×ba \times b is (abK)2(ab - K)^2, and the deviation of a ground plan is the sum of the deviations of its apartments.

Stanko wants to build the plan with the smallest deviation. Write a program that computes the smallest possible deviation of a ground plan that satisfies the conditions above.

Input

The first and only line contains the integers NN, MM, KK (1N,M3001 \le N, M \le 300, 1K100001 \le K \le 10000), separated by spaces.

Output

Print the smallest possible deviation of a ground plan on a single line.