Sereja has a bracket sequence s1,?s2,?...,?sn, or, in other words, a string s of
length n, consisting of characters "(" and ")".
Sereja needs to answer m queries, each of them is described by two integers li,?ri(1?≤?li?≤?ri?≤?n).
The answer to the i-th query is the length of the maximum correct bracket subsequence of sequence sli,?sli?+?1,?...,?sri.
Help Sereja answer all queries.
You can find the definitions for a subsequence and a correct bracket sequence in the notes.