#include <stdio.h>
int main()
{ unsigned int a,b; int c,n; while (scanf("%ld %ld %ld",&a,&b,&c)!=EOF) { if (c==0) if (a%b*10/b>=5) printf("%ld\n",a/b+1); else printf("%ld\n",a/b); else printf("%ld.",a/b); if (b==0) continue; a=a%b; while (c) { a=a*10; if (c==1) if (a%b*10/b>=5) printf("%ld\n",a/b+1); else printf("%ld\n",a/b); else printf("%ld",a/b); a=a%b; c--; } } return 0;
}