Dr. Patel has stacks of plates. Each stack contains plates. Each plate has a positive beauty value, describing how beautiful it looks.
Dr. Patel would like to take exactly plates to use for dinner tonight. If he would like to take a plate in a stack, he must also take all of the plates above it in that stack as well.
Help Dr. Patel pick the plates that would maximize the total sum of beauty values.
输入格式
The first line of the input gives the number of test cases, . test cases follow. Each test case begins with a line containing the three integers , and . Then, lines follow. The -th line contains integers, describing the beauty values of each stack of plates from top to bottom.
输出格式
For each test case, output one line containing Case #x: y, where is the test case number (starting from 1) and is the maximum total sum of beauty values that Dr. Patel could pick.