UVa 120 - Stacks of Flapjacks