Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/kvadratlar

Squares

Easy 1000 ms 64 MB 10%
Share

Squares with side $C$ are placed without overlapping inside a rectangle with sides $A$ and $B$. The sides of the squares are parallel to the sides of the rectangle. Find the largest number of squares that fit.

A grid of squares placed inside the rectangle

Input

One line with three positive integers: $A$, $B$ and $C$.

Output

One integer — the number of squares.

Note

$1 \le A, B, C \le 10^{9}$

Examples

Input #1
10 7 3
Output #1
6
Input #2
6 6 2
Output #2
9

Sign in to submit a solution

Signing up is free and takes a minute.