Solution to Lotto.