URI 1136 -> UVa 12239 -> SPOJ 7745 resolvido