for(l in readLines("stdin")){j=1 a=c() for(i in 80:1){s=substr(l,i,i) if(s=="(")j=j-1 if(length(a)