Federal government posts $9.8-billion deficit for April-to-August period