#include<stdio.h>

int main(){

int s=0;
int d=10;
int A=0;
int n;
int a,b;

while(scanf("%d %d %d",&a,&b,&n)!=EOF){
int S=0;s=a%b;
for(int i=0;i<n;i++)
{
s*=10;
A=s/b;s=s%b;
S+=A;
}
printf("%d\n",S);
}
return 0;
}