LearnPy Hub
← Arena
EasyRating 1000

Paving the Square

A rectangular square is n × m metres. Paving stones are a × a. Stones can't be broken but may stick out past the edge. Print the fewest stones needed.

Input

Three integers n, m, a (1 ≤ n, m, a ≤ 10⁹).

Output

One integer.

Sample 1

Input
6 6 4
Output
4

Sample 2

Input
1 1 1
Output
1
solution.py
Output appears here
Paving the Square · Python Arena problem · LearnPy Hub