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