#include <iostream>
#include <cmath>

using namespace std;

int main(int argc, char **argv)
{
	int n, u;
	long double s, t;
	
	while(cin >> s >> t >> n){
		u = 0;
		s /= t;
		for(int i = 0; i < n; i++){
			t = s*pow(10.0, (double)i);
			t -= (int)t;
			u += (int)(t*10);
		}
		cout << u << endl;
	}
	
	return 0;
}