Solved UVa 11173