Задание из 9 лекции https://gitlab.sirius-web.org/python-students-22/marakulin_practical_tasks/-/tree/main/syracuse_sequence