Increase performance by reduce denominators length
I solved problem 27