def generateParanthesis(openB,closeB,n,s=[]):
if(closeB==n):
print(''.join(s)) return else: if(closeB<openB): s.append(')') generateParanthesis(openB,closeB+1,n,s) s.pop() elif(openB<n): s.append('(') generateParanthesis(openB+1,closeB,n,s) s.pop() elif(n<0): return return