1.
/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11984 - A Change in Thermal Unit
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3135
*
* @author Burgmair Stefan
* @author YYY
* @version 1.0, 20/06/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.176
*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] arr;
int nmbrOfTestCases = Integer.parseInt(reader.readLine());
double output;
for (int i = 1; i <= nmbrOfTestCases; i++){
arr = reader.readLine().split(" ");
output = Double.parseDouble(arr[0])*9/5+32;
output = output + Double.parseDouble(arr[1]);
output = (output - 32) * 5 / 9;
System.out.printf("Case %d: %.2f", i, output);
System.out.println();
}
}
}