Input

(0<= ri < m , 0 <= ci < n for i = 1, 2, 3)

Output

$$\left \lfloor i*m*n/4 \right \rfloor \text{for i = 1, 2,3 }$$

Sample Input

3 6
2 1 2 4 0 4
4 3
2 0 3 2 0 2
0 0


Sample Output

Case 1: 2
Case 2: 0