Solved with math.