Solve UVa 124 - Following Orders.