Solved UVa 11003