#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
  int a,b,n;
  int  sum,p,s;
  while( scanf("%d%d%d",&a,&b,&n) != EOF ){
  sum = 0;
  for(int i = 1 ; i <= n ; i++){
    a = a*10;
    sum += a/b;
    a = a%b;
  }
  cout << sum << endl;
  }
  return 0;
}