#include <stdio.h>
int main ()
{
int t , n , max ,i,j,a;
scanf ("%d",&t) ;
for (i=1 ;i <=t ;i++)
{
scanf ("%d",&n) ;
max=0 ;
for (j=1 ; j<= n ; j++)
{
scanf ("%d",&a) ;
if (max<= a) max = a ;
}
printf ("Case %d: %d\n",i ,max ) ;
}
return 0 ;
}
int main ()
{
int t , n , max ,i,j,a;
scanf ("%d",&t) ;
for (i=1 ;i <=t ;i++)
{
scanf ("%d",&n) ;
max=0 ;
for (j=1 ; j<= n ; j++)
{
scanf ("%d",&a) ;
if (max<= a) max = a ;
}
printf ("Case %d: %d\n",i ,max ) ;
}
return 0 ;
}