Solutions to Yandex exercises.