#include <iostream>
#include <cmath>
using namespace std;

int main(){
	int a, b, n;
	double tmp;
	int sum;
	while (cin >> a >> b >> n) {
		sum = 0;
		for (int i = 0; i < n; i++) {
			tmp = (double)a/(double)b * pow(10.0, (double)i);
			sum += (tmp - (double)(int)tmp) * 10;
		}
		cout << sum << endl;
	} 
	return 0;
}