Three lines have the cotangents 7, 8 and 18 for the angles that they make with a fixed direction, each angle being a principal value of the inverse cotangent in (0,π). A student adds the three angles and finds that the sum is cot−1k for some positive number k. What is k?