#include<iostream>
using namespace std;
int main(){
	int a,b,n,ans;
	double pre;
	while(cin>>a>>b>>n){
		ans=0;
		pre=(double)a/b-a/b;
		for(int i=0;i<n;i++){
		ans+=pre*10;
			pre*=10;
			pre-=(int)pre;
		}
		cout<<ans<<endl;
	}
	return 0;
}