sbool isBracket(S s) { ret isOpeningBracket(s) || isClosingBracket(s); }