#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
int a, b, c;
while(scanf("%d%d%d", &a, &b, &c) == 3)
{
int divd;
divd = a;
printf("%d", divd/b);
if((divd % b != 0) && (c!=0))
putchar('.'); //no extra . for 20 4 5 or 10 7 0
for(int i=0; i < c; ++i)
{
if(divd % b == 0) break; //no meaningless zeros
divd = (divd%b) * 10;
if(i == c-1)
{
//rounding
int next = (divd%b) * 10 /b;
if(next >= 5)
{
printf("%d", divd/b + 1);
break;
}
}
printf("%d", divd/b);
}
putchar('\n');
}
}