Solved UVa 11242