#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
using namespace std;
int main(){
  long long a,b,n,sum,cnt;
  double ab;
  long long a_b;
  while(scanf("%lld %lld %lld",&a,&b,&n)!=EOF){
    ab=(double)a/(double)b;
    sum=0;cnt=1;
    if(b!=0){
    for(int i=0;i<n;i++,cnt*=10){
      a_b = (long long)(ab*cnt*10);
      while(a_b>=10){
	a_b %= 10;
      }
      printf("%f %lld\n",ab,a_b);
      sum+=a_b;
    }
    }
    printf("%lld\n",sum);
  }
}

  