STOCKHOLDERS' EQUITY - Summary of Components of Accumulated Other Comprehensive (Loss) Income (Details) - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Activity in Accumulated Other Comprehensive Loss    
Beginning balances $ 954,579 $ 1,282,564
Other comprehensive loss before reclassifications (30,078)  
Amounts reclassified out of accumulated other comprehensive loss (33)  
Other comprehensive (loss) income (30,045) 32,707
Ending balances 835,453 929,648
Unrealized Losses on Foreign Exchange Contracts Designated as Hedges    
Activity in Accumulated Other Comprehensive Loss    
Beginning balances (48)  
Other comprehensive loss before reclassifications (188)  
Amounts reclassified out of accumulated other comprehensive loss (33)  
Other comprehensive (loss) income (155)  
Ending balances (203)  
Foreign Currency Translation Adjustments    
Activity in Accumulated Other Comprehensive Loss    
Beginning balances (118,467)  
Other comprehensive loss before reclassifications (29,890)  
Amounts reclassified out of accumulated other comprehensive loss 0  
Other comprehensive (loss) income (29,890)  
Ending balances (148,357)  
AOCI Attributable to Parent    
Activity in Accumulated Other Comprehensive Loss    
Beginning balances (118,515) (136,878)
Other comprehensive (loss) income (30,045)  
Ending balances $ (148,560) $ (104,171)