The solution verbosely outputs its calculations to standard error, using the notation defined in the problem specification. Removing those statement cuts 20 lines, dropping the solution to 80 lines total.