XML 111 R99.htm IDEA: XBRL DOCUMENT v3.22.2.2
LEASES (Summary of Components of Total Lease Costs) (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2022
Aug. 31, 2021
LEASES [Abstract]    
Operating lease cost $ 15,632 $ 17,724
Short-term lease cost 49 167
Variable lease cost 4,376 4,410
Sublease income (180) (891)
Total lease costs $ 19,877 $ 21,410