A bakery made 26 cherry pies, using 115 cherries for each pie. They threw away 36 cherries that were bad. If they used all the cherries they had, how many cherries did they start with?