DERIVATIVE FINANCIAL INSTRUMENTS - Schedule of the Effects of Derivative Financial Instruments Designated as Cash Flow Hedging Instruments (Details) - Cash flow hedging - Designated as cash flow hedges - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2022
Apr. 30, 2021
DERIVATIVE FINANCIAL INSTRUMENTS    
Net gains (losses) recognized in Accumulated other comprehensive (loss) income $ (270) $ 40
Net (losses) gains reclassified from Accumulated other comprehensive (loss) income to the consolidated statements of operations (82) (16,563)
Foreign currency forward contracts    
DERIVATIVE FINANCIAL INSTRUMENTS    
Net gains (losses) recognized in Accumulated other comprehensive (loss) income (270) 40
Net (losses) gains reclassified from Accumulated other comprehensive (loss) income to the consolidated statements of operations (82) 106
Interest rate swap agreement    
DERIVATIVE FINANCIAL INSTRUMENTS    
Net (losses) gains reclassified from Accumulated other comprehensive (loss) income to the consolidated statements of operations $ 0 $ (16,669)