#include<cstdio>
#include<algorithm>

using namespace std;
int main(void)
{
	int a,b,n;
	while(scanf("%d%d%d",&a,&b,&n)!= EOF)
	{
		int sum = 0;
		int kari = a % b;
		double amari = (double)kari;
		amari /= b;
		for(int i = 0;i < n;i++)
		{
			amari *= 10;
			sum += (int)amari;
			amari -= (int)amari;
		}
		printf("%d\n",sum);
	}
	return 0;
}