Fractions#1984

Fractions

1 second
128 megabytes
Easy

For a given positive integer , print in ascending order all the proper irreducible fractions with denominators not exceeding .

Input

The first line contains the number of test cases (t \leq 10). Each of the following lines contains one integer (1 < n \leq 2000).

Output

For each test case, print in ascending order all the proper irreducible fractions. Neighboring fractions should be separated by a comma and one space.

Examples

Example 1

Loading
Loading