The program Lottery is intended for the players of a popular lottery 'SPORTS FORECAST'. The lottery represents process of guessing of results of sports matches, which are published in a seal. Results are published as the table consisting of 13 (or 16) positions number of a match, 1 - prize, 2 - loss, X - drawn game. As the advantageous tickets are considered in which is guessed 13, 12 or 11 positions. The given program allows creating the table of advantageous combinations (codes) with the account preliminary of the information on forthcoming matches.