Print formula into output file