task by A. Anufriev