Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> n, m, k = map(int, input().split())
... answer = (m + k - 1) // k * (n + k - 1) // k
