package basic;
import java.util.Scanner;
public class a248 {
/**
* @param args
*/
// Divisor 被除數
// Dividend 除數
// Quotient 商數
// Remainder 餘數
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner cin = new Scanner(System.in);
while (cin.hasNext()) {
int Divisor = cin.nextInt(); // Divisor 被除數
int Dividend = cin.nextInt(); // Dividend 除數
int position = cin.nextInt(); //小數點位置
int Quotient[] = new int[position + 1]; // Quotient 商數
// 取所有商數
for (int n = 0; n < Quotient.length; n++) {
if(n==1){
System.out.print(".");
}
//0處理
if (Dividend==0){
Quotient[n] = 0;
}else
{
Quotient[n] = (Divisor / Dividend);
Divisor = (Divisor % Dividend) * 10;
}
System.out.print(Quotient[n]);
}
System.out.print("\n");
}
}
}