N, X, T = list(map(int, input().split()))



count = N // X

if N % X != 0:

    count += 1



print((count * T))

N, X, T = list(map(int, input().split()))

times = N // X

if N % X != 0:

  times += 1

print((T * times))

N, X, T = list(map(int, input().split()))
count = N // X
if N % X != 0:
    count += 1
print((count * T))

N, X, T = list(map(int, input().split()))
times = N // X
if N % X != 0:
    times += 1
print((T * times))

-count = N // X +times = N // X -    count += 1 -print((count * T)) +    times += 1 +print((T * times))