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 GYI AEYO BPRK EZHSCHU NMIZCH SYLZ SHDU CHOT YAFVI 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 B can turn into one of the letters A, B, V, G. (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 list the possible combinations of the given letters:

g'Y Ayo BPRk EZhYu nm'ch sYzl shDU chto Yfvi

BSZ AID ANOy gECh lK'yH pshEJ cVFS FUMR eTAZh vShI BYE BopY d'shE MlYC R'JK ChGT HFNs yUBZ g'Y Vyo VPRK EZhYu nm'Ch SyZl shDU chto Yfvi dyk -yuzh gRSl Yo'y onesh Tyim ShEF ChzPU -xgY E'l -yaz - stM jiy- poyun Ueyn yEHX 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: VyaZ, eTAZh. Since there are Zz letters in the original words, the letters V, Y, Z, E, T, A, Zh are already used and can be crossed out from all columns:

g'Y Ayo BPRk EZhYu nm'Ch sYzl shDU chto yfvi

BSh- --- - - Noi gECh lk'yH pshEJ C-S Fumr eTAZh

-shI --- BopY d'sh- mlyC Pb-k ChG- HFNs ----

g'Y V-- -PRK E-yu nMyCh Sy-L shDU cht- --.-

DYK --- GRSL Yo-y ON-Sh -yIm ShEF ChzPU

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 vyaZ gnoy DIch' PLYUSh SYOM CEH ShURF eTAZh