UVA114 - Simulation Wizardry

simulation, ad hoc.