#include <cstdio>

using namespace std;

int main(){
	
	int a, b, n;
	int ab, ab2;
	int c;
	
	while (scanf("%d %d %d", &a, &b, &n) != EOF){
		c = ab = ab2 = 0;
		
		if (a / b == 0){
				a *= 10;
			}
		a %= b;
		
		for (int i = 0; i < n; i++){
			if (a / b == 0){
				a *= 10;
			}
			ab = a / b;
			ab2 = a % b;
			
			c += ab;
			a = ab2;
		}
		
		printf("%d\n", c);
	}
}