bool isCapitalLetter(char S) { return (S >= 'A' && S <= 'Z'); }