Ordered Fractions#1031

Ordered Fractions

1 second
64 megabytes
Very easy

Consider the set of all reduced proper fractions between and inclusive with denominators less than or equal to .

Here is the set when N = 5:

Write a program that, given an integer (1 \leq N \leq 160), prints each of these fractions in increasing order, one per line.

Input

One line containing a single integer .

Output

Print all required fractions, one per line, sorted in increasing order as shown in the example output.

Examples

Example 1

Loading
Loading