UVa 10324 resolvido