Fiscal Years Ended March 31,
Fiscal Years Ended March 31,
Fiscal Years Ended March 31,
2019
2018
2017
Net cash provided by (used in) operating activities (1)
$131,731
$120,761
$71,667
Net cash provided by (used in) investing activities
(147,012)
102,364
(25,598)
Net cash provided by (used in) financing activities
(56,657)
(55,798)
(125)
Effect of foreign currency fluctuations on cash (2)
(6,990)
9,745
(1,174)
Net increase (decrease) in cash, cash equivalents, and restricted cash
$(78,928)
$177,072
$44,770
cash and cash equivalents decreased by $ 78 .
9 million during the year ended march 31 2019 as compared to an increase of $ 177 .
1 million during the year ended march 31 2018 and an increase of $ 44 .
8 million during the year ended march 31 2017 as follows -amounts in thousands : .
-1 fiscal years ended march 31 2018 and 2017 adjusted due to the adoption of asc 606 .
-2 fiscal year ended march 31 2018 adjusted due to the adoption of asc 606 .
operating cash flow activities .
during fiscal years 2019 2018 and 2017 cash provided by operating activities totaled $ 131 .
7 million $ 120 .
8 million and $ 71 .
7 million respectively .
during fiscal year 2019 cash provided by operating activities was positively impacted by our net income of $ 206 .
6 million a $ 7 .
7 million increase in accounts payable and a $ 1 .
0 million decrease in accrued income taxes .
operating cash flows were negatively impacted by a $ 70 .
6 million decrease in other operating liabilities a $ 42 .
8 million increase in inventories an $ 8 .
9 million increase in accounts receivable and a $ 4 .
4 million increase in prepaid expenses and other assets .
the decrease in other operating liabilities was driven by a $ 46 .
3 million decrease in accruals for tokin anti-trust fines and a $ 7 .
8 million decrease in restructuring liabilities .
the increase in inventory is due to increased customer demand .
during fiscal year 2018 cash provided by operating activities was positively impacted by our net income of $ 254 .
1 million .
excluding the acquired balances from tokin operating cash flows were also positively impacted by a $ 30 .
2 million decrease in accounts receivable a $ 4 .
3 million decrease in prepaid expenses and other assets and a $ 1 .
3 million increase in accrued income taxes .
excluding the acquired balances from tokin operating cash flows were negatively impacted by a $ 16 .
1 million decrease in accounts payable and a $ 13 .
8 million increase in inventories .
during fiscal year 2017 cash provided by operating activities was positively impacted by our net income of $ 47 .
2 million a $ 16 .
8 million decrease in inventories a $ 6 .
2 million increase in accounts payable and a $ 1 .
7 million increase in other operating liabilities .
operating cash flows were negatively impacted by a $ 2 .
6 million increase in accounts receivable and a $ 1 .
8 million increase in prepaid expenses and other assets .
investing cash flow activities .
during fiscal years 2019 2018 and 2017 cash provided by -used in investing activities totaled $ -147 .
0 million $ 102 .
4 million and $ -25 .
6 million respectively .
during fiscal year 2019 cash used in investing activities included capital expenditures of $ 146 .
1 million primarily related to expanding capacity at our manufacturing facilities in mexico portugal china thailand and japan as well as information technology projects in the united states and mexico .
$ 16 .
3 million of the $ 146 .
1 million in capital expenditures were related to the customer capacity agreements .
additionally the company invested $ 4 .
0 million in the form of capital contributions to kemet jianghai and novasentis .
offsetting these uses of cash we had asset sales of $ 2 .
3 million and received dividends of $ 0 .
8 million .
during fiscal year 2018 cash provided by investing activities was primarily due to $ 164 .
0 million in net cash received attributable to the bargain purchase of tokin .
additionally we had proceeds from asset sales of $ 3 .
6 million and received dividends of $ 2 .
7 million .
this was partially offset by capital expenditures of $ 65 .
0 million primarily related to expanding capacity at our manufacturing facilities in mexico portugal china thailand and japan as well as for information technology projects in the united states and mexico .
in addition the company invested $ 3 .
0 million in the form of capital contributions to novasentis .
during fiscal year 2017 cash used in investing activities was primarily due to capital expenditures of $ 25 .
6 million primarily related to expanding capacity at our manufacturing facilities in mexico italy portugal and china .
financing cash flow activities .
during fiscal years 2019 2018 and 2017 cash used in financing activities totaled $ 56 .
7 million $ 55 .
8 million and $ 0 .
1 million respectively .
during fiscal year 2019 the company received $ 281 .
8 million in proceeds from the tokin term loan facility net of discount bank issuance costs and other indirect issuance costs $ 13 .
4 million in proceeds from advances from customers as described in the earlier section titled " customer advances " received proceeds on an interest free loan from the portuguese government of $ 1 .
1 million and received $ 0 .
5 million in cash proceeds from the exercise of stock options .
the company made $ 344 .
5 million in payments on long term debt including two quarterly principal payments on the term loan credit agreement of $ 4 .
3 million for a total of $ 8 .
6 million $ 323 .
4 million to repay the remaining balance on the term loan credit agreement and one principal payment on the tokin term loan facility of $ 12 .
4 million .
an early payment premium on the term loan credit agreement used $ 3 .
2 million in cash .
lastly the company paid two quarterly cash dividends for a total of $ 5 .
8 million .
during fiscal year 2018 cash used in financing activities was impacted by the following payments : -i $ 353 .
0 million to pay off the remaining outstanding balance of the 10 .
5 % senior notes -ii $ 33 .
9 million to repay the remaining outstanding balance of the revolving line of credit and -iii three quarterly principal payments on the term loan credit agreement for $ 4 .
3 million each for a total of $ 12 .
9 million .
the company received $ 329 .
7 million in proceeds from the term loan credit agreement net of discount bank issuance costs and other indirect issuance costs received proceeds from the exercise of stock warrants and stock options for $ 8 .
8 million and $ 5 .
2 million respectively and received $ 0 .
3 million in proceeds on an interest free loan from the portuguese government .
during fiscal year 2017 the company made $ 0 .
1 million in net payments on long-term debt had cash outflows of $ 1 .
1 million for the purchase of treasury stock and received $ 1 .
1 million from the exercise of stock options .

Question: What was the Net cash provided by (used in) investing activities in 2018?
Answer: 102,364