Solved UVa 11223