LONG-TERM DEBT - Capped Calls, Note Hedges and Warrants (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 5 Months Ended
Jun. 01, 2021
Apr. 06, 2021
Feb. 01, 2021
Jun. 18, 2014
Apr. 30, 2022
Apr. 30, 2021
Jan. 21, 2022
Debt Instrument [Line Items]              
Cumulative effect of adoption of ASU No. 2020-06, net of taxes   $ 41,100     $ 0 $ 40,950  
2021 Notes              
Debt Instrument [Line Items]              
Capped calls, initial conversion price (in dollars per share)   $ 62.08          
Capped calls, initial cap price (in dollars per share)   $ 100.00          
2014 Notes              
Debt Instrument [Line Items]              
Exercise price of warrants (in dollars per share)     $ 47.18 $ 75.00      
Note Hedges, number of shares with right to acquire from counterparties     9,865,000 6,205,000      
Option indexed to issuer's equity, strike price (in dollars per share)     $ 40.55 $ 64.46      
Payment for note hedges       $ 60,800      
Note hedges, shares received upon settlement (in shares) 1,250,000            
Note hedges, number of shares received pertaining to reimbursement 42,000            
Warrants, number of underlying common shares (in shares)     9,865,000 6,205,000      
Proceeds from issuance of warrants       $ 45,200      
Warrants issued (in shares)             293,143
Warrants exercised on a cashless basis (in shares)             5,031,000