/**
* ACM Training
* ACM Problem: Contest Problem: A - Athletics Track
* Link: http://uva.onlinejudge.org/contests/235-f0e63531/11646.html
* @author Miesel Christoph
* @version 1.0 22.08.2009
* Status : Accepted
*/

import java.io.*;
import java.util.*;

public class A
{
public static void main(String[] args) throws Exception
{
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer token;
int cases = 0;
String line = null;
double CONSTANT = 200;

// Standard-Variables
double a,b,phi,radius,bow,sum;
double length, width;

while((line = r.readLine()) != null)
{
cases++;
token = new StringTokenizer(line);
a = (double)Integer.parseInt(token.nextToken());
token.nextToken();
b = (double)Integer.parseInt(token.nextToken());

// Algorithm
phi = 2*Math.atan(b/a);

//System.out.println(phi);
radius = 0.5 * Math.sqrt((Math.pow(a, 2)+Math.pow(b, 2)));
bow = radius * phi;
sum = bow + a;
length = Math.abs(CONSTANT / sum * a);
width = Math.abs(CONSTANT / sum * b);

System.out.println("Case "+cases+": "+length+ " "+width);

}
}
}