A player must match three different numbers chosen from the integers 1 to 30 in any order to win a lottery. If a ticket costs $1, what is the largest possible prize so that the organizers make a profit (on average)?