UVA120 - Stacks of Flapjacks

greedy, sorting, stacks, queues.