A football team lines up in rows for a photograph. The position of each player is given by two integers x and y. Here y is the number of the row the player stands in, and x is the distance from the left edge of that row to the player. All x values are different.
To make the photograph more interesting, players who stand near each other wear shirts of different colors. The rule is the following. For each player P:
More formally, if there is a player at (x1,y1) and a player at (x2,y2) with x1<x2, the two players must have different shirt colors when both of these hold:
Find the minimum number of distinct shirt colors that makes this possible.
The first line contains one integer T, the number of test cases. Each test case starts with a line holding one integer N, the number of players, followed by N lines that each give the position of one player in this format.
x y
Limits
For each test case, print one line in this format.
Case #X: c
X is the test case number, starting from 1, and c is the minimum number of colors required.