#include <cstdio>

using namespace std;

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