UVa 10035...solucion 1