import math

n, x, t = list(map(int, input().split()))

ans = math.ceil(n/x)*t

print(ans)
n, x, t = list(map(int, input().split()))

times = (n + x - 1) // x

ans = times * t

print(ans)
import math

n, x, t = list(map(int, input().split()))
ans = math.ceil(n / x) * t
print(ans)

n, x, t = list(map(int, input().split()))
times = (n + x - 1) // x
ans = times * t
print(ans)

-import math - -ans = math.ceil(n / x) * t +times = (n + x - 1) // x +ans = times * t