How to win a pie-eating contest