import math a,b,c=map(int,input().aplit()) print(math.ceil(a/c)*b)