Collecting Luggage EXTREME!!!

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2420 [PDF](https://uva.onlinejudge.org/external/114/p11425.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11425/8c8619925855899d122cc5eab9d8e34c2f7d2ebb.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11425/ecf03fa1e22aceba314f2be17e3b256c4ed89d8c.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11425/01c4bea7c26b9e26216487bf39e35d514512d117.png)

输入输出样例

输入样例 #1

6
0 40
0 0
20 0
20 20
40 20
40 40
120 40
70 100
4
0 0
10 0
10 10
0 10
100 100
10 11
0

输出样例 #1

Case 1: Time = 1:02
Case 2: Time = 12:36