Solved UVa 10281