Iaroslav Tverdokhlib's submission of Andrew and the Balls | CodeChef