#include <iostream>
#include <cstdlib>
using namespace std;

int main() {
  int a;
  while( cin >> a ) {
    int b, n;
    int sum = 0;
    cin >> b >> n;
//    cout << a << " " << b << " " << sum << endl;
    a %= b;
    a *= 10;
    for( int i = 0; a > 0 && i < n; i++ ) {
      sum += a / b;
//      cout << a << " " << b << " " << sum << endl;
      a %= b;
      a *= 10;
    }
    cout << sum << endl;
  }
  return EXIT_SUCCESS;
}