URI 1227 -> UVa 12487 resolvido