#include <bits/stdc++.h>
using namespace std;
int main(){ int n, x, y; while(cin >> x >> y >> n){ int ans = x%y; cout << x/y << '.'; for(int i = 0; i<n; i++){ cout << ans*10/y; ans = ans*10%y; } cout << endl; }
return 0;}