P19612 [HackerEarth] Sakshi was contesting to be the most stylist person in his college. He had to collect maximum points from the judges to be able to win. However there was a problem. The judges were sitti
普及
题目描述

Sakshi was contesting to be the most stylist person in his college. He had to collect maximum points from the judges to be able to win. However there was a problem. The judges were sitting in a line and each pair of adjacent judges had ego issues with each other. So if one judge gave X points to Rahul then the next judge won’t give him any points. Rahul had a friend in the organizing team and through him he had found out the exact points he would get from each judge if he chose their score to be considered. Help him find out the maximum points he can score.

INPUT

The first line of input contains the number of test cases, T.

Each test case starts with a number N, the number of judges.

The next line will have N numbers, number of points each judge gave Harry

The order of the judges does not change.

OUTPUT

For each test case print “Case T: A” without quotes in a single line.

T is the case number, starting with 1.

A is the maximum number of points Harry can collect.

CONSTRAINTS

0 < T < = 10

0 ≤ N < = 10^4.

0 < = X(i) < = 10^9.

SAMPLE INPUT
2
5
1 2 3 4 5
1
10

SAMPLE OUTPUT
Case 1: 9
Case 2: 10

输入格式

见题面

输出格式

见题面

样例输入
10 6 18467 6334 26500 19169 15724 11478 1 26962 3 5705 28145 23281 7 9961 491 2995 11942 4827 5436 32391 7 3902 153 292 12382 17421 18716 19718 6 5447 21726 14771 11538 1869 19912 9 26299 17035 9894 28703 23811 31322 30333 17673 4664 4 7711 28253 6868 25547 6 32662 32757 20037 12859 8723 9741 8 778 12316 3035 22190 1842 288 30106 9040
样例输出
Case 1: 398704 Case 2: 410259 Case 3: 430899 Case 4: 619983 Case 5: 876782 Case 6: 356404 Case 7: 749465 Case 8: 919059 Case 9: 137855 Case 10: 724961