s=0 "$System.in".any{c->s=c.tr('([{',')]}')-c+s s-=c=c-'?'?:s[0] print c}