#include <iostream>

using namespace std;

int main()
{
    double a, b;
    int n;

    while (cin >> a >> b >> n) {
        int s = 0;

        a /= b;
        for (int i = 0; i < n; i++) {
            a -= (int)a;
            a *= 10;
            s += (int)a;
        }
        cout << s << endl;
    }

    return 0;
}