int main(int argc, char** argv) { int a,b,c,d,e=0; cin >> a; for (int i=1;i<=a;i++) { e=i; cin >> b >> c >> d; cout << "Case " << e << ": "; if (b > c && d > b) { cout << b << endl; } else if (b > d && c > b) { cout << b << endl; } else if (c > b && d > c) { cout << c << endl; } else if (c > d && b > c) { cout << c << endl; } else if (d > b && c > d) { cout << d << endl; } else if (d > c && b > d) { cout << b << endl; } } return 0; }