Rectangles 2

No attempts yetTime limit2sMemory limit512 MB

Problem

In the 3×23 \times 2 grid shown above, the rectangles whose vertices all lie on grid points and whose sides are vertical or horizontal are: six 1×11 \times 1, four 2×12 \times 1, three 1×21 \times 2, two 2×22 \times 2, two 3×13 \times 1, and one 3×23 \times 2, for a total of 18. A grid point is the intersection of a vertical line and a horizontal line.

You are given a grid of size n×mn \times m. Count how many rectangles have all four vertices on grid points, have vertical or horizontal sides, and have perimeter at least pp. A rectangle of size w×hw \times h has perimeter 2(w+h)2(w + h).

Input

The first and only line of standard input contains three integers nn, mm, and pp separated by spaces (1n,m50001 \le n, m \le 5000, 4p2(n+m)4 \le p \le 2(n + m)). Here nn and mm are the dimensions of the grid, and pp is the lower bound on the rectangle perimeter.

Output

On the first line of standard output, print a single integer: the number of rectangles in the n×mn \times m grid whose vertices lie on grid points, whose sides are vertical or horizontal, and whose perimeter is at least pp.