XML 57 R46.htm IDEA: XBRL DOCUMENT v3.22.1
LEASES - Cash Flow and Other Information Related to Leases (Details) - USD ($)
$ in Thousands
6 Months Ended
Feb. 28, 2022
Feb. 28, 2021
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash outflows from operating leases $ 17,720 $ 17,812
Operating cash outflows from finance leases 1,019 1,125
Financing cash outflows from finance leases 8,445 7,761
Right-of-Use Assets Obtained in Exchange for Lease Obligations [Abstract]    
Operating leases 19,009 20,249
Finance leases $ 6,716 $ 8,784