Yandex test task - star only