On each of the three axes, there is one rotating gear and one stationary pointer. The gears are connected sequentially. The first gear has 33 teeth, the second has 10, and the third has 7. On each tooth of the first gear, in alphabetical order, a letter of the Russian alphabet is written clockwise:

А Б В Г ДЕ Ё Ж З И Й К Л М Н О ПР С Т У Ф ХЦ ЧШ Щ Ы Ь Э Ю Я.

On the teeth of the second and third gears, in ascending order clockwise, the digits from 0 to 9 and from 0 to 6 are written, respectively. When the pointer on the first axis points to a letter, the pointers on the other two axes point to

Letters of the message are encrypted sequentially. Encryption is performed by rotating the first gear counterclockwise until the letter to be encrypted first appears under the pointer. At this moment, the digits pointed to by the second and third pointers are sequentially recorded. At the beginning of the encryption, the pointer of the first wheel pointed to the letter А, and the pointers of the second and third wheels pointed to the digit 0.

Encrypt the word О Л И М П И А Д.

#
Carefully determine the stop moments after the start of encryption. For this, assign the ordinal number to each letter of the Russian alphabet.

## Solution

Determine the stop moments after the start of encryption. Number the letters of the Russian alphabet: А - 0, Б - 1, and so on. The letters of the encrypted word will correspond to the numbers: О - 15, Л - 12, И - 9, М - 13, П - 16, А - 0, Д - 4. The stop moments will be indicated by the number of one-step (one-tooth) rotations of the first wheel to the corresponding stop.

| Stop Number | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Letter of the First Wheel | О | Л | И | М | П | И | А | Д | А |
| Number of One-Step Rotations from Start to Stop | 15 | 45 | 75 | 79 | 82 | 108 | 132 | 136 | 165 |
| Digit of the Second Wheel | 5 | 5 | 5 | 1 | 8 | 2 | 8 | 4 | 5 |
| Digit of the Third Wheel | 1 | 3 | 5 | 2 | 5 | 3 | 6 | 3 | 4 |

## Answer

515355128523864354.