Solved UVa 10784 and 11069