import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n=scn.nextInt();
for(int i=1;i<=n;i++){
double c=scn.nextDouble(),d=scn.nextDouble();
d=d*(5/9.);
System.out.printf("Case %d: %.2f\n",i,c+d);
}
}
/*
題目:Q11984: A Change in Thermal Unit
作者:1010
時間:西元 2016 年 7 月 */
}