A grocer sold a carton of apples to some customers. The first customer tasted one apple and bought half the
remaining apples. The second and third customers did the same. The fourth customer also tasted one apple and bought the remaining 23 apples. How many apples were there in the carton at first?