#### Problem

Vincenzo decides to make cube IV but only has the budget to make a square maze. Its a perfect maze, every room is in the form of a square and there are 4 doors (1 on each side of the room). There is a big number written in the room. A person can only move from one room to another if the number in the next room is larger than the number in his current room by 1. Now, Vincenzo assigns unique numbers to all the rooms (1, 2, 3, …. $s^{2}$) and then places $s^{2}$ people in the maze, 1 in each room where S is the side length of the maze. The person who can move maximum number of times will win. Figure out who will emerge as the winner and the number of rooms he will be able to move.

Input

The first line of the input gives the number of test cases, T. T test cases follow. Each test case consists of S which is the side length of the square maze. Then $s^{2}$ numbers follow like a maze to give the numbers that have been assigned to the rooms.

Output

For each test case, output one line containing “Case #x: r d”, where x is the test case number (starting from 1), r is the room number of the person who will win and d is the number of rooms he could move. In case there are multiple such people, the person who is in the smallest room will win.

Limits
1 ≤ T ≤ 100.

Small dataset
1 ≤ S ≤ 10

Large dataset
1 ≤ S ≤$10^{3}$

Sample：

题目大致的意思就是在一个$S\times S$ 的迷宫里$S^{2}$个小格子），每个小格子就是一个房间，用数字从1到$S^{2}$给这$S^{2}$个房间随机编号，每个房间的编号唯一。每个房间的4面墙上都有一扇门（在迷宫边缘的门是打不开的），转移到下一个房间的规则是下一个房间的编号必须比当前房间的编号大1。现在每个房间都有一个人，谁访问房间数最多的则获胜。如果有多人出发点能够有最多访问房间数，则出发时所在房间（起点）编号最小的获胜。要求输出获胜者出发时的房间编号以及访问房间次数。