Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2023
Apr. 30, 2022
Cash flows from operating activities:    
Net income $ 3,634 $ 574
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 17,503 18,048
Stock-based compensation, excluding cash-settled awards 14,814 18,364
Losses on early retirements of debt 237 0
Other, net 45 2,163
Changes in operating assets and liabilities, net of effects of business combinations and divestitures:    
Accounts receivable 31,124 41,766
Contract assets 1,923 4,024
Inventories (937) 68
Prepaid expenses and other assets 21,278 (8,686)
Accounts payable and accrued expenses (6,821) (5,694)
Contract liabilities (19,245) (9,645)
Deferred income taxes 90 (1,074)
Other, net (3,638) (5,982)
Net cash provided by operating activities 60,007 53,926
Cash flows from investing activities:    
Purchases of property and equipment (4,923) (5,224)
Maturities and sales of investments 232 250
Purchases of investments (3,180) (250)
Cash paid for capitalized software development costs (1,868) (2,003)
Change in restricted bank time deposits, and other investing activities, net (1,019) 20
Net cash used in investing activities (10,758) (7,207)
Cash flows from financing activities:    
Proceeds from borrowings 100,000 0
Repayments of borrowings and other financing obligations (100,530) (775)
Payments of debt-related costs (9) (93)
Purchases of treasury stock and common stock for retirement (60,294) (105,213)
Preferred stock dividend payments (10,400) (10,400)
Distributions paid to noncontrolling interest (245) 0
Payments of contingent consideration for business combinations (financing portion), and other financing activities (8) (1,549)
Net cash used in financing activities (71,486) (118,030)
Foreign currency effects on cash, cash equivalents, restricted cash, and restricted cash equivalents 859 (2,431)
Net decrease in cash, cash equivalents, restricted cash, and restricted cash equivalents (21,378) (73,742)
Cash, cash equivalents, restricted cash, and restricted cash equivalents, beginning of period 282,161 358,868
Cash, cash equivalents, restricted cash, and restricted cash equivalents, end of period $ 260,783 $ 285,126