import java.math.; import java.util.;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i=1;
while(sc.hasNextInt()) {
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
if(a==0&&b==0&&c==0) return;
double d = (double)a/b;
BigDecimal bd=new BigDecimal(d);
bd = bd.setScale(c, BigDecimal.ROUND_FLOOR);
//String d= String.format("%."+(c+1)+"f",(double)a/b);
System.out.println("Case "+i+": "+bd);
i++;
}
}
}