#include<iostream>

using namespace std;

int main(void){
	while( 1 ){
		int s = 0;
		int d;
		int a, b, n;

		
		cin >> a >> b >> n;
		if( cin.eof() )break;
		
		d = a / b; a = (a - d * b) * 10;
		while( n > 0 ){
			int d = a / b;
			a = (a - d * b) * 10;
			n--;
			s += d;
		}

		cout << s << endl;
	}
}