cf div2 C - maths