{ NOTA: si raccomanda di usare questo template anche se non lo si capisce completamente }

const
    MAXN = 1000000;

var
    N, T, i, test : LongInt;
    P             : Array[0..MAXN-1] of LongInt;
    ris           : Int64;

begin
{
    decommenta le due righe seguenti se vuoi leggere/scrivere da file
    assign(input,  'input.txt');  reset(input);
    assign(output, 'output.txt'); rewrite(output);
}

    ReadLn(T);
    for test:=1 to T do begin
        ReadLn();
        ReadLn(N);

        for i:=0 to N-1 do
            Read(P[i]);
        ReadLn();

        ris := 0;

        { INSERISCI IL TUO CODICE QUI }


        Write('Case #', test, ': ');
        WriteLn(ris);
    end;

end.
