A bakery made 25 cherry pies, using 109 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 off with?