program takoyaki
	integer:: N,X,T
    integer:: total_time
    
    read(*,*) N,X,T
    total_time = N/X
    if(mod(N,X) /= 0) total_time = total_time + 1
    write(*,'(i0)') total_time*T
end program
