#45535: sort super easy


1121232@stu.wghs.tp.edu.tw (Ian911436)


#include <bits/stdc++.h>
using namespace std;

int main() {
    int m, n[3];
    cin >> m;
    for(int i=1; i<=m; i++){
        cin >> n[0] >> n[1] >> n[2];
        sort(n, n+3);
        cout << "Case " << i << ": "<< n[1] << endl;
    }
    return 0;
}