INCOME TAXES (Details) - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Jan. 31, 2022
Income Tax Disclosure [Abstract]      
(Benefit from) provision for income taxes $ 296 $ (72)  
Income (loss) before provision of income taxes $ 870 $ 1,022  
Effective income tax rate (as a percent) 34.00% (7.00%)  
Unrecognized tax benefits (excluding interest and penalties) $ 84,100   $ 84,200
Unrecognized tax benefits, income tax penalties and interest accrued 3,600   $ 3,400
Significant change in unrecognized tax benefits is reasonably possible, amount of unrecorded benefit $ 400