#30253: __19


810177@stu.hgsh.hc.edu.tw (810177董蒙恩)


#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;
}