Generate Parentheses
Print all balanced strings of pairs of parentheses, in lexicographic order (( comes before )).
Input
A single integer .
Output
One string per line.
Constraints
Sample 1
Input
3
Output
((())) (()()) (())() ()(()) ()()()
Sample 2
Input
1
Output
()