uva; solve "The jackpot" from Volume 106