https://barzunov.ru/2020/06/exambegin67/
Решение задачи ExamBegin67