How to Bet a Lottery Effectively