XML 17 R6.htm IDEA: XBRL DOCUMENT v3.6.0.2
Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Nov. 30, 2016
Nov. 30, 2015
Cash flows from operating activities:    
Net income (loss) $ 208,942 $ 266,174
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 121,372 100,350
Amortization of deferred major repair costs 18,302 18,518
Equity (income) loss from investments (40,328) (31,362)
Provision for doubtful accounts 27,812 2,945
Distributions from equity investments 16,393 22,991
(Gain) loss on sale of property, plant and equipment (5,244) (1,611)
(Gain) loss on investments 7,401 (5,672)
Unrealized (gain) loss on crack spread contingent liability (6,770) (32,289)
Deferred taxes 6,199 7,409
Other, net 10,706 10,927
Changes in operating assets and liabilities, net of acquisitions:    
Receivables (16,555) (24,110)
Inventories (754,253) (466,554)
Derivative assets 110,306 72,117
Margin deposits (2,623) 59,942
Supplier advance payments (133,109) (358,194)
Other current assets and other assets 12,082 50,348
Customer margin deposits and credit balances (28,141) (22,038)
Customer advance payments 131,444 261,931
Accounts payable and accrued expenses 743,427 596,881
Derivative liabilities (195,545) (107,373)
Other liabilities 6,599 (5,231)
Net cash provided by (used in) operating activities 238,417 416,099
Cash flows from investing activities:    
Acquisition of property, plant and equipment (116,986) (251,678)
Proceeds from disposition of property, plant and equipment 2,574 2,931
Expenditures for major repairs (239) (18,897)
Investments in joint ventures and other 0 (12,709)
Proceeds from sale of investments 0 17,990
Changes in notes receivable, net (211,126) (137,599)
Other investing activities, net (1,245) (518)
Net cash provided by (used in) investing activities (327,022) (400,480)
Cash flows from financing activities:    
Proceeds from lines of credit and long-term borrowings 10,300,476 2,524,577
Payments on lines of credit, long term-debt and capital lease obligations (9,936,369) (2,034,405)
Mandatorily redeemable noncontrolling interest payments 0 (153,022)
Payments on crack spread contingent liability 0 (2,625)
Changes in checks and drafts outstanding 14,334 (4,811)
Preferred stock dividends paid (41,825) (40,500)
Retirements of equities (9,528) (3,314)
Other financing activities, net 384 0
Net cash provided by (used in) financing activities 327,472 285,900
Effect of exchange rate changes on cash and cash equivalents (2,696) 1,928
Net increase (decrease) in cash and cash equivalents 236,171 303,447
Cash and cash equivalents at beginning of period 279,313 953,813
Cash and cash equivalents at end of period $ 515,484 $ 1,257,260