A non-local action for the trace anomaly