#include<stdio.h>
main(){
int a,b,n,i,cor;
while(scanf("%d %d %d",&a,&b,&n)!=EOF){
printf("%d.",a/b); cor=a%b;
for(i=0;i<n;i++){
cor*=10;
printf("%d",cor/b);
cor%=b;
}
printf("\n");
}
}