UVa 11661 resolvido