Dave loves strings consisting only of '(' and ')'. Especially, he is interested in balanced strings. Any balanced strings can be constructed using the following rules:
Dave has a string consisting only of '(' and ')'. It satises the followings:
Your task is to compute Dave's string. If there are multiple candidates, output the minimum in lexicographic order. As is the case with ASCII, '(' is less than ')'.
The input consists of a single test case, which contains an integer $A$ ($1 \leq A \leq 10^9$).
Output Dave's string in one line. If there are multiple candidates, output the minimum in lexicographic order.
1
)(
There are infinitely many strings which can be balanced by only one swap. Dave's string is the shortest of them.
4
)())((
String "))(()(" can be balanced by 4 swaps, but the output should be ")())((" because it is the minimum in lexicographic order.