newton/solutions/theatre_square.py

9 lines
123 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
from math import ceil
n, m, a = [int(x) for x in input().split(' ')]
val1 = ceil(n/a)
val2 = ceil(m/a)
print(val1*val2)