#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,i,n,t;
    cin>>a>>b>>n;
    cout<<a/b<<".";
    t=a%b;
    for(i=1;i<=n;i++){
        t=t*10;
        cout<<t/b;
        t=t%b;
    }
    return 0;
}
/**************************************************************
	Problem: 1271
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/