yandex_algorithm_infinite.cpp