THE GOLDMAN SACHS GROUP, INC.  AND SUBSIDIARIES Management’s Discussion and Analysis The table below presents our average monthly assets under supervision by asset class.
||Average for theYear Ended December|
|$ in billions|2017|2016|2015|
|Alternative investments|$ 162|$ 149|$ 145|
|Equity|292|256|247|
|Fixed income|633|578|530|
|Total long-term AUS|1,087|983|922|
|Liquidity products|330|326|272|
|Total AUS|$1,417|$1,309|$1,194|

Operating Environment.
During 2017, Investment Management operated in an environment characterized by generally higher asset prices, resulting in appreciation in both equity and fixed income assets.
In addition, our longterm assets under supervision increased from net inflows primarily in fixed income and alternative investment assets.
These increases were partially offset by net outflows in liquidity products.
As a result, the mix of average assets under supervision during 2017 shifted slightly from liquidity products to long-term assets under supervision as compared to the mix at the end of 2016.
In the future, if asset prices decline, or investors favor assets that typically generate lower fees or investors withdraw their assets, net revenues in Investment Management would likely be negatively impacted.
Following a challenging first quarter of 2016, market conditions improved during the remainder of 2016 with higher asset prices resulting in full year appreciation in both equity and fixed income assets.
Also, our assets under supervision increased during 2016 from net inflows, primarily in fixed income assets, and liquidity products.
The mix of our average assets under supervision shifted slightly compared with 2015 from long-term assets under supervision to liquidity products.
Management fees were impacted by many factors, including inflows to advisory services and outflows from actively-managed mutual funds.2017 versus 2016.
Net revenues in Investment Management were $6.22 billion for 2017, 7% higher than 2016, due to higher management and other fees, reflecting higher average assets under supervision, and higher transaction revenues.
During the year, total assets under supervision increased $115 billion to $1.49 trillion.
Longterm assets under supervision increased $128 billion, including net market appreciation of $86 billion, primarily in equity and fixed income assets, and net inflows of $42 billion (which includes $20 billion of inflows in connection with the Verus acquisition and $5 billion of equity asset outflows in connection with the Australian divestiture), primarily in fixed income and alternative investment assets.
Liquidity products decreased $13 billion (which includes $3 billion of inflows in connection with the Verus acquisition).
Operating expenses were $4.80 billion for 2017, 3% higher than 2016, primarily due to increased compensation and benefits expenses, reflecting higher net revenues.
Pre-tax earnings were $1.42 billion in 2017, 25% higher than 2016.2016 versus 2015.
Net revenues in Investment Management were $5.79 billion for 2016, 7% lower than 2015.
This decrease primarily reflected significantly lower incentive fees compared with a strong 2015.
In addition, management and other fees were slightly lower, reflecting shifts in the mix of client assets and strategies, partially offset by the impact of higher average assets under supervision.
During 2016, total assets under supervision increased $127 billion to $1.38 trillion.
Long-term assets under supervision increased $75 billion, including net inflows of $42 billion, primarily in fixed income assets, and net market appreciation of $33 billion, primarily in equity and fixed income assets.
In addition, liquidity products increased $52 billion.
Operating expenses were $4.65 billion for 2016, 4% lower than 2015, due to decreased compensation and benefits expenses, reflecting lower net revenues.
Pre-tax earnings were $1.13 billion in 2016, 17% lower than 2015.
Geographic Data See Note 25 to the consolidated financial statements for a summary of our total net revenues, pre-tax earnings and net earnings by geographic region.
ferred capital debt securities, as issuances of FDIC-guaranteed debt and non-FDIC guaranteed debt in both the U. S.  and European markets were more than offset by redemptions.
Cash proceeds resulted from an increase in securities loaned or sold under repurchase agreements, partly attributable to favorable pricing and to financing the increased size of the Firm’s AFS securities portfolio; and the issuance of $5.8 billion of common stock.
There were no repurchases in the open market of common stock or the warrants during 2009.
In 2008, net cash provided by financing activities was $247.8 billion due to: growth in wholesale deposits, in particular, interest- and noninterest-bearing deposits in TSS (driven by both new and existing clients, and due to the deposit inflows related to the heightened volatility and credit concerns affecting the global markets that began in the third quarter of 2008), as well as increases in AM and CB (due to organic growth); proceeds of $25.0 billion from the issuance of preferred stock and the Warrant to the U. S.  Treasury under the Capital Purchase Program; additional issuances of common stock and preferred stock used for general corporate purposes; an increase in other borrowings due to nonrecourse secured advances under the Federal Reserve Bank of Boston AML Facility to fund the purchase of asset-backed commercial paper from money market mutual funds; increases in federal funds purchased and securities loaned or sold under repurchase agreements in connection with higher client demand for liquidity and to finance growth in the Firm’s AFS securities portfolio; and a net increase in long-term debt due to a combination of non-FDIC guaranteed debt and trust preferred capital debt securities issued prior to December 4, 2008, and the issuance of $20.8 billion of FDIC-guaranteed long-term debt issued during the fourth quarter of 2008.
The fourth-quarter FDIC-guaranteed debt issuance was offset partially by maturities of non-FDIC guaranteed long-term debt during the same period.
The increase in long-term debt (including trust preferred capital debt securities) was used primarily to fund certain illiquid assets held by the parent holding company and to build liquidity.
Cash was also used to pay dividends on common and preferred stock.
The Firm did not repurchase any shares of its common stock during 2008.
In 2007, net cash provided by financing activities was $184.1 billion due to a net increase in wholesale deposits from growth in business volumes, in particular, interest-bearing deposits at TSS, AM and CB; net issuances of long-term debt (including trust preferred capital debt securities) primarily to fund certain illiquid assets held by the parent holding company and build liquidity, and by IB from client-driven structured notes transactions; and growth in commercial paper issuances and other borrowed funds due to growth in the volume of liability balances in sweep accounts in TSS and CB, and to fund trading positions and to further build liquidity.
Cash was used to repurchase common stock and pay dividends on common stock.
Credit ratings The cost and availability of financing are influenced by credit ratings.
Reductions in these ratings could have an adverse effect on the Firm’s access to liquidity sources, increase the cost of funds, trigger additional collateral or funding requirements and decrease the number of investors and counterparties willing to lend to the Firm.
Additionally, the Firm’s funding requirements for VIEs and other third-party commitments may be adversely affected.
For additional information on the impact of a credit ratings downgrade on the funding requirements for VIEs, and on derivatives and collateral agreements, see Special-purpose entities on pages 86–87 and Ratings profile of derivative receivables marked to market (“MTM”), and Note 5 on page 111 and pages 175–183, respectively, of this Annual Report.
Critical factors in maintaining high credit ratings include a stable and diverse earnings stream, strong capital ratios, strong credit quality and risk management controls, diverse funding sources, and disciplined liquidity monitoring procedures.
The credit ratings of the parent holding company and each of the Firm’s significant banking subsidiaries as of January 15, 2010, were as follows.
||Short-term debt|Senior long-term debt|
||Moody’s|S&P|Fitch|Moody’s|S&P|Fitch|
|JPMorgan Chase & Co.|P-1|A-1|F1+|Aa3|A+|AA-|
|JPMorgan Chase Bank, N.A.|P-1|A-1+|F1+|Aa1|AA-|AA-|
|Chase Bank USA, N.A.|P-1|A-1+|F1+|Aa1|AA-|AA-|

Ratings actions affecting the Firm On March 4, 2009, Moody’s revised the outlook on the Firm to negative from stable.
This action was the result of Moody’s view that the Firm’s ability to generate capital would be adversely affected by higher credit costs due to the global recession.
The rating action by Moody’s in the first quarter of 2009 did not have a material impact on the cost or availability of the Firm’s funding.
At December 31, 2009, Moody’s outlook remained negative.
Ratings from S&P and Fitch on JPMorgan Chase and its principal bank subsidiaries remained unchanged at December 31, 2009, from December 31, 2008.
At December 31, 2009, S&P’s outlook remained negative, while Fitch’s outlook remained stable.
Following the Firm’s earnings release on January 15, 2010, S&P and Moody’s announced that their ratings on the Firm remained unchanged.
If the Firm’s senior long-term debt ratings were downgraded by one additional notch, the Firm believes the incremental cost of funds or loss of funding would be manageable, within the context of current market conditions and the Firm’s liquidity resources.
JPMorgan Chase’s unsecured debt does not contain requirements that would call for an acceleration of payments, maturities or changes in the structure of the existing debt, provide any limitations on future borrowings or require additional collateral, based on unfavorable
Management’s discussion and analysis JPMorgan Chase & Co. /2009 Annual Report 122 Residential real estate loan modification activities: During 2009, the Firm reviewed its residential real estate portfolio to identify homeowners most in need of assistance, opened new regional counseling centers, hired additional loan counselors, introduced new financing alternatives, proactively reached out to borrowers to offer pre-qualified modifications, and commenced a new process to independently review each loan before moving it into the foreclosure process.
In addition, during the first quarter of 2009, the U. S.  Treasury introduced the MHA programs, which are designed to assist eligible homeowners in a number of ways, one of which is by modifying the terms of their mortgages.
The Firm is participating in the MHA programs while continuing to expand its other loss-mitigation efforts for financially distressed borrowers who do not qualify for the MHA programs.
The MHA programs and the Firm’s other loss-mitigation programs for financially troubled borrowers generally represent various concessions such as term extensions, rate reductions and deferral of principal payments that would have otherwise been required under the terms of the original agreement.
When the Firm modifies home equity lines of credit in troubled debt restructurings, future lending commitments related to the modified loans are canceled as part of the terms of the modification.
Under all of these programs, borrowers must make at least three payments under the revised contractual terms during a trial modification period and be successfully re-underwritten with income verification before their loans can be permanently modified.
The Firm’s loss-mitigation programs are intended to minimize economic loss to the Firm, while providing alternatives to foreclosure.
The success of these programs is highly dependent on borrowers’ ongoing ability and willingness to repay in accordance with the modified terms and could be adversely affected by additional deterioration in the economic environment or shifts in borrower behavior.
For both the Firm’s on-balance sheet loans and loans serviced for others, approximately 600,000 mortgage modifications had been offered to borrowers in 2009.
Of these, 89,000 have achieved permanent modification.
Substantially all of the loans contractually modified to date were modified under the Firm’s other loss mitigation programs.
The following table presents information relating to restructured on-balance sheet residential real estate loans for which concessions have been granted to borrowers experiencing financial difficulty as of December 31, 2009.
Modifications of purchased credit-impaired loans continue to be accounted for and reported as purchased credit-impaired loans, and the impact of the modification is incorporated into the Firm’s quarterly assessment of whether a probable and/or significant change in estimated future principal cash flows has occurred.
Modifications of loans other than purchased credit-impaired are generally accounted for and reported as troubled debt restructurings.
Restructured residential real estate loans(a)
| December 31, 2009|On-balance sheet loans|Nonperforming on-balance sheet loans(d)|
|(in millions)|
| Restructured residential real estate loans – excludingpurchased credit-impaired loans(b)|||
|Home equity – senior lien|$168|$30|
|Home equity – junior lien|222|43|
|Prime mortgage|634|243|
|Subprime mortgage|1,998|598|
|Option ARMs|8|6|
| Total restructured residential real estate loans – excluding purchased credit-impaired loans|$3,030|$920|
| Restructured purchased credit-impaired loans(c)|||
|Home equity|$453|NA|
|Prime mortgage|1,526|NA|
|Subprime mortgage|1,954|NA|
|Option ARMs|2,972|NA|
| Total restructured purchased credit-impaired loans|$6,905|NA|

(a) Restructured residential real estate loans were immaterial at December 31, 2008.
(b) Amounts represent the carrying value of restructured residential real estate loans.
(c) Amounts represent the unpaid principal balance of restructured purchased credit-impaired loans.
(d) Nonperforming loans modified in a troubled debt restructuring may be returned to accrual status when repayment is reasonably assured and the borrower has made a minimum of six payments under the new terms.
Real estate owned (“REO”): As part of the residential real estate foreclosure process, loans are written down to the fair value of the underlying real estate asset, less costs to sell.
In those instances where the Firm gains title, ownership and possession of individual properties at the completion of the foreclosure process, these REO assets are managed for prompt sale and disposition at the best possible economic value.
Any further gains or losses on REO assets are recorded as part of other income.
Operating expense, such as real estate taxes and maintenance, are charged to other expense.
REO assets declined from year-end 2008 as a result of the foreclosure moratorium in early 2009 and the subsequent increase in loss mitigation activities.
It is anticipated that REO assets will increase over the next several quarters, as loans moving through the foreclosure process are expected to increase.
The calculation of the allowance for loan losses to total retained loans, excluding both home lending purchased credit-impaired loans and loans held by the Washington Mutual Master Trust, is presented below.
|December 31, (in millions, except ratios)|2009|2008|
|Allowance for loan losses|$31,602|$23,164|
|Less: Allowance for purchased credit-impaired loans|1,581|—|
|Adjusted allowance for loan losses|$30,021|$23,164|
|Total loans retained|$627,218|$728,915|
|Less: Firmwide purchased credit-impaired loans|81,380|89,088|
|Loans held by the Washington Mutual Master Trust|1,002|—|
|Adjusted loans|$544,836|$639,827|
| Allowance for loan losses to ending loans excluding purchased credit-impaired loans and loans held by the Washington Mutual Master Trust|5.51%|3.62%|

The following table presents the allowance for credit losses by business segment at December 31, 2009 and 2008.
||Allowance for credit losses|
|| 2009|2008|
|December 31,||Lending-related|||Lending-related||
|(in millions)|Loan losses|commitments|Total|Loan losses|commitments|Total|
|Investment Bank|$3,756|$485|$4,241|$3,444|$360|$3,804|
|Commercial Banking|3,025|349|3,374|2,826|206|3,032|
|Treasury & Securities Services|88|84|172|74|63|137|
|Asset Management|269|9|278|191|5|196|
|Corporate/Private Equity|7|—|7|10|—|10|
| Total Wholesale|7,145|927|8,072|6,545|634|7,179|
|Retail Financial Services|14,776|12|14,788|8,918|25|8,943|
|Card Services|9,672|—|9,672|7,692|—|7,692|
|Corporate/Private Equity|9|—|9|9|—|9|
| Total Consumer|24,457|12|24,469|16,619|25|16,644|
| Total|$31,602|$939|$32,541|$23,164|$659|$23,823|

Provision for credit losses The managed provision for credit losses was $38.5 billion for the year ended December 31, 2009, up by $13.9 billion from the prior year.
The prior-year included a $1.5 billion charge to conform Washington Mutual’s allowance for loan losses, which affected both the consumer and wholesale portfolios.
For the purpose of the following analysis, this charge is excluded.
The consumer-managed provision for credit losses was $34.5 billion for the year ended December 31, 2009, compared with $20.4 billion in the prior year, reflecting an increase in the allowance for credit losses in the home lending and credit card loan portfolios.
Included in the 2009 addition to the allowance for loan losses was a $1.6 billion increase related to estimated deterioration in the Washington Mutual purchased credit-impaired portfolio.
The wholesale provision for credit losses was $4.0 billion for the year ended December 31, 2009, compared with $2.7 billion in the prior year, reflecting continued weakness in the credit environment.
|Year ended December 31,|Provision for credit losses|
|(in millions)|Loan losses|Lending-related commitments|Total|
||2009|2008|2007|2009|2008|2007|2009|2008|2007|
|Investment Bank|$2,154|$2,216|$376|$125|$-201|$278|$2,279|$2,015|$654|
|Commercial Banking|1,314|505|230|140|-41|49|1,454|464|279|
|Treasury & Securities Services|34|52|11|21|30|8|55|82|19|
|Asset Management|183|87|-19|5|-2|1|188|85|-18|
|Corporate/Private Equity(a)(b)|-1|676|—|-1|5|—|-2|681|—|
| Total Wholesale|3,684|3,536|598|290|-209|336|3,974|3,327|934|
|Retail Financial Services|15,950|9,906|2,620|-10|-1|-10|15,940|9,905|2,610|
|CardServices – reported|12,019|6,456|3,331|—|—|—|12,019|6,456|3,331|
|Corporate/Private Equity(a)(c)(d)|82|1,339|-11|—|-48|—|82|1,291|-11|
| Total Consumer|28,051|17,701|5,940|-10|-49|-10|28,041|17,652|5,930|
| Total provision for creditlosses – reported|31,735|21,237|6,538|280|-258|326|32,015|20,979|6,864|
|Credit card– securitized|6,443|3,612|2,380|—|—|—|6,443|3,612|2,380|
| Total provision for creditlosses – managed|$38,178|$24,849|$8,918|$280|$-258|$326|$38,458|$24,591|$9,244|

(a) Includes accounting conformity provisions related to the Washington Mutual transaction in 2008.
(b) Includes provision expense related to loans acquired in the Bear Stearns merger in the second quarter of 2008.
(c) Includes amounts related to held-for-investment prime mortgages transferred from AM to the Corporate/Private Equity segment.
(d) In November 2008, the Firm transferred $5.8 billion of higher quality credit card loans from the legacy Chase portfolio to a securitization trust previously established by Washington Mutual (‘‘the Trust’’).
As a result of converting higher credit quality Chase-originated on-book receivables to the Trust’s seller’s interest which has a higher overall loss rate reflective of the total assets within the Trust, approximately $400 million of incremental provision expense was recorded during the fourth quarter.
This incremental provision expense was recorded in the Corporate segment as the action related to the acquisition of Washington Mutual’s banking operations.
For further discussion of credit card securitizations, see Note 15 on pages 206---213 of this Annual Report.

Question: What was the total amount of the Commercial Banking in the sections where Investment Bank is greater than 1000? (in million)

Python solution:
def solution():
    # Define variables name and value
    commercial_banking_1 = 3025
    commercial_banking_2 = 2826
    commercial_banking_3 = 3374
    commercial_banking_4 = 3032

    # Do math calculation to get the answer
    answer = commercial_banking_1 + commercial_banking_2 + commercial_banking_3 + commercial_banking_4
    
    return answer

Answer: 12257