To check the teletype printing letters of the Russian alphabet

ABVGDEYOZHIZIJKLMPRSTUFHTCHSHSHUIYIYEYU before a set of 9 words containing all 33 letters of the alphabet was transmitted. Due to a malfunction of the teletype, at the receiving end, the words ГъЙ АЭЁ БПРК ЕЖЩЮ НМЬЧ СЫЛЗ ШДУ ЦХОТ ЯФВИ were received. Restore the original text, given that the nature of the malfunction is such that each letter is replaced by a letter that is no more than two letters away from it in the specified alphabet. For example, the letter Б can turn into one of the letters А, Б, В, Г. (Problem from the site www.cryptography.ru.)

#
When sifting through options, it's easier to first identify the second and last words. Based on this, reduce the number of remaining options.

## Solution

Let's compile the possible combinations of the given letters:

g'y Ayo Bpk Ezshu nm'Ch syzl shdu chto yfvi

BSZ AIYD ANOI g'Ch lK'yH PshEY CVFS FUMR aTAH

VshI ByE BOpy dyoSh MlyC RyJK ChPT HfNS yuBZ

g'y Vyo VPRk EzShu nm'Ch syzL shdu chto yfvi

dyk -yuz GRSy Yo'yA onesh Tyim ShEF ChpU -xgy

Eyl -yaz - stm jiy- poyun Ueyn b'yH shchRF -cdk

By selecting the second and last groups of letters (where there are short columns of letters), we can determine the words corresponding to them: Viaz, aTAH. Since these letters are used in the original words, the letters V, Y, Z, A, T, H are already used and can be crossed out from all columns:

g'y Ayo BPRk EZShu nm'ch syzl shdu cXot yfvi

BS- --- - - NOI g'Ch LK'yH PshEY C-S FUmR aTAH

-shI --- Bopy dyoSh mlyc Ry-k Ch- HfNS ----

G'y V-- -PRK E-Shu NM'CH SY-L SHDU CXO-

DYK --- GRSy Yo-y- ON-Sh -YIm ShEF ChPU ----

Eyl -yaz -sm -iy- poyun U-yN y'Eh ShchRF ----

From several options, for example, in the third group: Gnoy gnom Grom, we choose options so that each letter is used only once. Continuing in this way, we get the answer. Answer: BYK Viaz Gnoy DICH PLYUSH SYOM CEX SHURF aTAH