Simplify the print of the result.
Scripts for question C2 and D.