Andrey Kim's submission of Bear and Row 01 | CodeChef