You are on page 1of 1

s=input()

s=[-1 if(x=='(') else +1 for x in s]


n=len(s)
print(s)

def solve(s,ind,n):
found=1
i=ind
while(found)
if(s[i]==-1):
if(s[i+1]==1):
del

You might also like