v3.22.4
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended
Nov. 30, 2022
Nov. 30, 2021
Cash flows from operating activities:    
Net income $ (17,556) $ 47,276
Adjustments to reconcile net (loss) income to cash provided by operating activities:    
Asset impairment charges 4,000  
Exit-related asset impairments 143  
Depreciation and amortization 21,451 17,220
Inventory write-downs 575 192
Deferred income taxes (5,741) 11,227
Undistributed equity in earnings of joint ventures (790) (236)
Share-based compensation expense 2,816 4,392
Loss on disposal of assets, net 300 307
Unrealized foreign exchange loss (gain), net 141 (10)
Credit loss, net (18) (4)
Changes in assets and liabilities, net of acquisitions:    
Accounts receivable 16,925 (68,490)
Inventories (27,846) (45,581)
Income taxes (293) (59)
Prepaid expenses and other current assets 1,839 546
Other long-term assets (1,212) (488)
Operating lease assets and liabilities 313 (337)
Accounts payable (18,692) 20,509
Accrued payroll and related liabilities (28,902) (38,642)
Other accrued liabilities (8,709) 21,327
Environmental liabilities (2,452) (3,628)
Other long-term liabilities 1,556 210
Net cash used in operating activities (62,152) (34,269)
Cash flows from investing activities:    
Capital expenditures (47,520) (39,719)
Acquisitions, net of acquired cash (26,902) (113,939)
Proceeds from insurance and sale of assets 2,219 10,643
Net cash used in investing activities (72,203) (143,015)
Cash flows from financing activities:    
Borrowings from long-term debt 186,356 271,091
Repayment of long-term debt (78,781) (86,314)
Payment of debt issuance costs (135)  
Taxes paid related to net share settlement of share-based payment awards (6,807) (9,577)
Distributions to noncontrolling interests (962) (1,026)
Dividends paid (5,540) (5,568)
Net cash provided by financing activities 94,131 168,606
Effect of exchange rate changes on cash (40) (59)
Net decrease in cash and cash equivalents (40,264) (8,737)
Cash and cash equivalents as of beginning of period 43,803 27,818
Cash and cash equivalents as of end of period 3,539 19,081
Cash paid during the period for:    
Interest 2,703 611
Income taxes paid, net (16) (80)
Schedule of noncash investing and financing transactions:    
Purchases of property, plant and equipment included in liabilities $ 17,134 $ 12,417