#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
int main()
{
int a, b, n;
while (cin >> a >> b >> n)
{
cout << a / b;
int dot = a % b;
cout << ".";
if (n >= 0)
{
for (int i = 0; i < n; i++)
{
dot = dot * 10;
cout << dot / b;
dot = dot % b;
}
}
cout << endl;
}
}