#include <iostream>
#include <string>
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int a, b, n;
while (cin >> a >> b >> n) {
string str;
str.reserve(n + 1);
cout << a / b << '.';
int rem = a % b;
for (int i = 0; i < n; i++) {
rem *= 10;
str.push_back('0' + rem / b);
rem %= b;
}
str.push_back('\n');
cout << str;
}
return 0;
}