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 clockwise order, one letter of the Russian alphabet is written in alphabetical order:

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

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 digits.

The letters of the message are encrypted sequentially. Encryption is performed by rotating the first gear counterclockwise until the first occurrence of the letter to be encrypted 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 stopping moments after the start of encryption. For this, assign the ordinal number to each letter of the Russian alphabet.

## Solution

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

| Stop Number | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Letter of the First Wheel | O | Л | И | М | П | И | А | Д | А |
| 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.