#include <iostream>
#include <algorithm>
#include <cmath>
#define N 100005
using namespace std;
int main() {
double a,b;
int cnt =1;
while(scanf("%lf : %lf",&a,&b)>0) {
double k = b/a;
double x = 200/((atan(b/a)/cos(atan(k)))+1);
double y = k*x;
printf("Case %d: %.10lf %.10lf\n",cnt++,x,y);
}
return 0;
}