Due to the installation of a new fire alarm in ITMO server room, the system may be occasionally unavailable on the 27-th of May between 06:00 and 15:00 (UTC). ×

179. Brackets light

time limit per test: 0.25 sec.
memory limit per test: 131072 KB
input: standard
output: standard

There is a correct brackets sequence. It's length doesn't exceed 10000 symbols.
Your task is to find next (in lexicographic order) correct brackets sequence with the same length. You may assume that '(' < ')'.

The first line of the input contains correct brackets sequence. There are only '(' and ')' symbols in the input.

Write sought sequence in the single line of the output or 'No solution' if solution doesn't exist.

Sample test(s)



Author:Stanislav Angelyuk
Resource:Saratov ST team Spring Contest #1