Lexicographic order#4436

Lexicographic order

1 second
64 megabytes
Medium

Print all valid bracket sequences in lexicographical order.

Input

The input file contains a natural number , which does not exceed .

Output

Output all valid bracket sequences of length in lexicographical order, with each sequence on a new line.

Examples

Example 1

Loading
Loading