XML 80 R47.htm IDEA: XBRL DOCUMENT v3.21.4
LEASES - Cash Flow and Other Information Related to Leases (Details) - USD ($)
$ in Thousands
3 Months Ended
Nov. 30, 2021
Nov. 30, 2020
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash outflows from operating leases $ 8,749 $ 9,047
Operating cash outflows from finance leases 519 560
Financing cash outflows from finance leases 4,199 3,795
Right-of-Use Assets Obtained in Exchange for Lease Obligations [Abstract]    
Operating leases 15,912 12,267
Finance leases $ 1,002 $ 6,300