def SumofNthDecimal( a, b, n )
	r = a % b
	s = 0
	i = 0
	while r != 0 && i < n
		a1 = r * 10

		d  = a1 / b 
		r  = a1 % b 
		s  += d
		i += 1
	end
	return s
end

def main
	answer = Array.new
	while line = $stdin.gets
		nums = line.chomp.split( /\s/ ).map{ |n| n.to_i }
		answer << SumofNthDecimal( nums[ 0 ], nums[ 1 ], nums[ 2 ] )
	end
	answer.each{ |a| puts a }
end
main
