Solved UVa 11078