#include <iostream>
#include <cstdio>
using namespace std;
typedef long long ll;

int calcFloat(double fl, ll n) {
    int sum = 0;
    for(int r = 1; r <= n; r++) {
        sum += (int)(fl*10);
        fl *= 10;
        //整数部分を取り除く
        int temp = fl;
        fl -= temp;
    }
    return(sum);
}

int main(void) {
    int a, b, n;
    while(cin >> a >> b >> n) {
        double div = a / (double)b;
        int temp = div;
        div -= temp;
        cout << calcFloat(div, n) << endl;
    }
    return(0);
}