Learning task by Alexey Kostyushko