How to Win Lotteries, Sweepstakes, and Contests