T=str(input()) A="" B="" i=0 l=len(T) while T[i]!="(": A+=T[i] i+=1 while T[i]!=")": i+=1 i+=1 while i