Evgeniy Sluzhaev's submission of Stacking Pancakes | CodeChef