Andrey's submission of Sonya and Segments | CodeChef