while gets do	
	a,b,n = $_.split.map(&:to_i)
	data = Array.new
	f = (a.to_f / b.to_f).to_s
	i = 2
	while true
		break if data.size == n
		data << (i < f.size ? f[i].to_i : 0)
		i += 1
	end
	puts data.inject{ |x,y| x+y }
end