Solved UVa 11492