DERIVATIVES (Derivatives Not Designated as Hedging Instruments) (Details) - USD ($) $ in Thousands |
3 Months Ended | |
|---|---|---|
Nov. 30, 2022 |
Nov. 30, 2021 |
|
| Derivative Instruments, Gain (Loss) [Line Items] | ||
| Gain (loss) on commodity derivatives accounted for as cash flow hedging instruments | $ 68,045 | $ 22,254 |
| Commodity | ||
| Derivative Instruments, Gain (Loss) [Line Items] | ||
| Gain (loss) on commodity derivatives accounted for as cash flow hedging instruments | 68,039 | 22,175 |
| Commodity | Cost of goods sold | ||
| Derivative Instruments, Gain (Loss) [Line Items] | ||
| Gain (loss) before income taxes for derivatives not designated as hedges | (3,085) | 2,746 |
| Foreign exchange | SG&A expenses | ||
| Derivative Instruments, Gain (Loss) [Line Items] | ||
| Gain (loss) before income taxes for derivatives not designated as hedges | $ 3,462 | $ (7,995) |