FAIR VALUE MEASUREMENTS (Details) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
| 
 Nov. 30, 2021  
USD ($)  
item 
 | 
 Nov. 30, 2020  
USD ($) 
 | 
|
| Fair Value Measurements [Abstract] | ||
| Transfers from Level 1 to Level 2 | $ 0 | $ 0 | 
| Transfers from Level 2 to Level 1 | 0 | 0 | 
| Transfers into (out of) Level 3 | $ 0 | $ 0 | 
| Level 2 [Member] | ||
| Fair Value Measurements [Abstract] | ||
| Number of liabilities | item | 1 | |
| X | ||||||||||
- Definition Number of liabilities available in each level of input. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of transfers of assets measured on a recurring basis out of Level 1 of the fair value hierarchy into Level 2. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount of transfers of assets measured on a recurring basis out of Level 2 of the fair value hierarchy into Level 1. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount of transfer of financial instrument classified as an asset into (out of) level 3 of the fair value hierarchy. No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Details 
  |