XML 54 R42.htm IDEA: XBRL DOCUMENT v3.5.0.2
Notes Payable - Additional Information (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2016
May 31, 2016
May 31, 2015
Aug. 31, 2015
Debt Instrument [Line Items]        
Notes payable $ 306,808 $ 306,808   $ 326,429
Payment of aggregate principal amount of notes   19,461 $ 5,504  
2026 Senior Notes        
Debt Instrument [Line Items]        
Notes payable 306,800 $ 306,800    
Debt instrument, maturity date   2026    
Repurchase percentage price of principal of notes amount   100.00%    
Payment of aggregate principal amount of notes 14,000      
Convertible senior notes 900 $ 900    
2026 Senior Notes | Put Option        
Debt Instrument [Line Items]        
Convertible senior notes $ 14,900 $ 14,900