#include <cstdio>
#include <cmath>
int c;
long double a,b;
int main(){
	while(scanf("%lf %lf %d",&a,&b,&c)!=EOF){
		int ans=0;
		double rt=a/b;
		for(int i=0;i<c;i++){
			rt*=10;
			int ru=(int)rt;
			printf("%f\n",rt);
			ans+=(ru%10);
			rt-=(ru/10)*10.0;
		}
		printf("%d\n",ans);
	}
}