#define _USE_MATH_DEFINES
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<climits>
#include<cmath>
#include<cstdio>
#include<deque>
#include<list>
#include<map>
#include<set>
#include<stack>
#include<string>
#include<sstream>
#include<queue>
#include<vector>
using namespace std;

int main() {
	for (int a, b, n; cin >> a >> b >> n;) {
		int s = 0;
		long double c = (long double)a / b - a / b;
		while (n--) {
			int d = c *= 10;
			s += d;
			c -= d;
		}
		cout << s << endl;
	}
	return 0;
}