Now that Kuroni has reached 10 years old, he is a big boy and doesn't like arrays of integers as presents anymore. This year he wants a Bracket sequence as a Birthday present. More specifically, he wants a bracket sequence so complex that no matter how hard he tries, he will not be able to remove a simple subsequence!

We say that a string formed by $n$ characters '(' or ')' is simple if its length $n$ is even and positive, its first $\frac{n}{2}$ characters are '(', and its last $\frac{n}{2}$ characters are ')'. For example, the strings () and (()) are simple, while the strings )( and ()() are not simple.

Kuroni will be given a string formed by characters '(' and ')' (the given string is not necessarily simple). An operation consists of choosing a subsequence of the characters of the string that forms a simple string and removing all the characters of this subsequence from the string. Note that this subsequence doesn't have to be continuous. For example, he can apply the operation to the string ')()(()))', to choose a subsequence of bold characters, as it forms a simple string '(())', delete these bold characters from the string and to get '))()'. 

Kuroni has to perform the minimum possible number of operations on the string, in such a way that no more operations can be performed on the remaining string. The resulting string does not have to be empty.

Since the given string is too large, Kuroni is unable to figure out how to minimize the number of operations. Can you help him do it instead?

A sequence of characters $a$ is a subsequence of a string $b$ if $a$ can be obtained from $b$ by deletion of several (possibly, zero or all) characters.


-----Input-----

The only line of input contains a string $s$ ($1 \le |s| \le 1000$) formed by characters '(' and ')', where $|s|$ is the length of $s$.


-----Output-----

In the first line, print an integer $k$  — the minimum number of operations you have to apply. Then, print $2k$ lines describing the operations in the following format:

For each operation, print a line containing an integer $m$  — the number of characters in the subsequence you will remove.

Then, print a line containing $m$ integers $1 \le a_1 < a_2 < \dots < a_m$  — the indices of the characters you will remove. All integers must be less than or equal to the length of the current string, and the corresponding subsequence must form a simple string.

If there are multiple valid sequences of operations with the smallest $k$, you may print any of them.


-----Examples-----
Input
(()((

Output
1
2
1 3 

Input
)(

Output
0

Input
(()())

Output
1
4
1 2 5 6 



-----Note-----

In the first sample, the string is '(()(('. The operation described corresponds to deleting the bolded subsequence. The resulting string is '(((', and no more operations can be performed on it. Another valid answer is choosing indices $2$ and $3$, which results in the same final string.

In the second sample, it is already impossible to perform any operations.

Difficulty: interview

Starter code:

Solutions:
s = input()
res = []
i = 0
j = len(s)-1
while i<j:
    if s[i]=="(" and s[j]==")":
        res.append(i+1)
        res.append(j+1)
        i+=1
        j-=1
    else:
        if s[i]==")":
            i+=1
        else:
            j-=1

if len(res)==0:
    print(0)
else:
    print(1)
    print(len(res))
    res.sort()
    print(*res,sep=" ")

a = input()
ans, ans1 = [], []
q1, q2 = 0, len(a)-1
while True:
    while q1 < len(a) and a[q1] == ')':
        q1 += 1
    while q2 > -1 and a[q2] == '(':
        q2 -= 1
    if q1 < q2:
        ans.append(q1+1)
        ans1.append(q2+1)
    else:
        break
    q1 += 1
    q2 -= 1
if len(ans)+len(ans1) == 0:
    print(0)
else:
    print(1)
    print(len(ans)+len(ans1))
    print(*ans, *ans1[::-1])


s = input()
n = len(s)

out = []
left = []
right = []

for i in range(n):
    if s[i] == '(':
        left.append(i)
    else:
        right.append(i)

left.reverse()

while left and right and left[-1] < right[-1]:
    out.append(left.pop())
    out.append(right.pop())

if out:
    print(1)
    print(len(out))
    print(' '.join([str(x + 1) for x in sorted(out)]))
else:
    print(0)


s = input()

p_lo = 0
p_hi = len(s) - 1
rem_lo = []
rem_hi = []

while p_lo < p_hi:
    if s[p_lo] == ")":
        p_lo += 1
    elif s[p_hi] == "(":
        p_hi -= 1
    else:
        rem_lo.append(p_lo)
        rem_hi.append(p_hi)
        p_lo += 1
        p_hi -= 1

if len(rem_lo) == 0:
    print(0)
else:
    print(1)
    print(2*len(rem_lo))
    print(*[x + 1 for x in rem_lo + list(reversed(rem_hi))])


s = input()
l = 0
r = s.count(')')
result = []
for i,c in enumerate(s):
    if c == '(':
        if l<r:
            result.append(i+1)
        l += 1
    else:
        if l>=r:
            result.append(i+1)
        r -= 1
if len(result)>0:
    print(1)
    print(len(result))
    print(*result)
else:
    print(0)


s=input()
n=len(s)
pre=[0 for i in range(n)]
if s[n-1]==")":
    pre[n-1]=1
for i in range(n-2,-1,-1):
    if s[i]==")":
        pre[i]=pre[i+1]+1
    else:
        pre[i]=pre[i+1]
co=0
aa=[]
for i in range(n):
    if(s[i]=="("):
        co+=1
        if(pre[i]<co):
            co-=1
            break
        else:
            aa.append(i+1)
            ind=i
if aa==[]:
    print(0)
else:
    print(1)
    print(len(aa)*2)
    for i in range(n-1,ind,-1):
        if co==0:
            break
        if s[i]==")":
            aa.append(i+1)
            co-=1
    aa.sort()
    print(*aa)


S = input()
N = len(S)
L, R = [], []
l, r = 0, N-1
while r > l:
    while S[l] == ")":
        l += 1
        if l >= N: break
    while S[r] == "(":
        r -= 1
        if r < 0: break
    if r > l:
        L.append(l+1)
        R.append(r+1)
        l += 1
        r -= 1

if len(L) == 0:
    print(0)
else:
    print(1)
    print(len(L) * 2)
    print(*(L + R[::-1]))


#!/usr/bin/env python3
import sys
input = sys.stdin.readline

s = input().rstrip()
n = len(s)
l = 0; r = n - 1
ans = []
while r - l > 0:
    while l != r and s[l] != "(":
        l += 1
    while r != l and s[r] != ")":
        r -= 1
    if l != r:
        ans.append(l+1)
        l += 1
        ans.append(r+1)
        r -= 1
if len(ans) == 0:
    print(0)
    return
else:
    print(1)
    print(len(ans))
    ans.sort()
    print(*ans)


s = input()
n = len(s)
l = []
r = []
for i in range(n):
  if s[i] == "(":
    l.append(i+1)
  else:
    r.append(i+1)
ans = 0
for i in range(min(len(l),len(r))):
  if l[i]<r[-i-1]:
    ans += 1
  else:
    break
if ans:
  print(1)
  print(ans*2)
  print(*l[:ans],*r[-ans:])
else:
  print(0)