#include<cstdint>#include<iostream>#include<limits>usingnamespacestd;intmain(){uint32_tt;cin>>t;for(uint32_tquery=0;query<t;++query){// Safely assume that there is at least one student.int32_tcrnt_max,crnt_min,crnt_sum;cin>>crnt_sum;crnt_max=crnt_min=crnt_sum;uint32_tcnt=1;for(int32_tscore;cin>>score,score!=-1;++cnt){crnt_sum+=score;if(crnt_max<score)crnt_max=score;elseif(crnt_min>score)crnt_min=score;}cout<<"case #"<<query<<":\n"<<crnt_max<<'\n'<<crnt_min<<'\n'<<crnt_sum/cnt<<'\n';}}