Notes to Consolidated Financial Statements Derivatives with Credit-Related Contingent Features Certain of the firm’s derivatives have been transacted under bilateral agreements with counterparties who may require the firm to post collateral or terminate the transactions based on changes in the firm’s credit ratings.
The firm assesses the impact of these bilateral agreements by determining the collateral or termination payments that would occur assuming a downgrade by all rating agencies.
A downgrade by any one rating agency, depending on the agency’s relative ratings of the firm at the time of the downgrade, may have an impact which is comparable to the impact of a downgrade by all rating agencies.
The table below presents the aggregate fair value of net derivative liabilities under such agreements (excluding application of collateral posted to reduce these liabilities), the related aggregate fair value of the assets posted as collateral, and the additional collateral or termination payments that could have been called at the reporting date by counterparties in the event of a one-notch and two-notch downgrade in the firm’s credit ratings.
## Table 0 ##
Credit Derivatives The firm enters into a broad array of credit derivatives in locations around the world to facilitate client transactions and to manage the credit risk associated with marketmaking and investing and lending activities.
Credit derivatives are actively managed based on the firm’s net risk position.
Credit derivatives are individually negotiated contracts and can have various settlement and payment conventions.
Credit events include failure to pay, bankruptcy, acceleration of indebtedness, restructuring, repudiation and dissolution of the reference entity.
Credit Default Swaps.
Single-name credit default swaps protect the buyer against the loss of principal on one or more bonds, loans or mortgages (reference obligations) in the event the issuer (reference entity) of the reference obligations suffers a credit event.
The buyer of protection pays an initial or periodic premium to the seller and receives protection for the period of the contract.
If there is no credit event, as defined in the contract, the seller of protection makes no payments to the buyer of protection.
However, if a credit event occurs, the seller of protection is required to make a payment to the buyer of protection, which is calculated in accordance with the terms of the contract.
Credit Indices, Baskets and Tranches.
Credit derivatives may reference a basket of single-name credit default swaps or a broad-based index.
If a credit event occurs in one of the underlying reference obligations, the protection seller pays the protection buyer.
The payment is typically a pro-rata portion of the transaction’s total notional amount based on the underlying defaulted reference obligation.
In certain transactions, the credit risk of a basket or index is separated into various portions (tranches), each having different levels of subordination.
The most junior tranches cover initial defaults and once losses exceed the notional amount of these junior tranches, any excess loss is covered by the next most senior tranche in the capital structure.
Total Return Swaps.
A total return swap transfers the risks relating to economic performance of a reference obligation from the protection buyer to the protection seller.
Typically, the protection buyer receives from the protection seller a floating rate of interest and protection against any reduction in fair value of the reference obligation, and in return the protection seller receives the cash flows associated with the reference obligation, plus any increase in the fair value of the reference obligation.
Credit Options.
In a credit option, the option writer assumes the obligation to purchase or sell a reference obligation at a specified price or credit spread.
The option purchaser buys the right, but does not assume the obligation, to sell the reference obligation to, or purchase it from, the option writer.
The payments on credit options depend either on a particular credit spread or the price of the reference obligation.
THE GOLDMAN SACHS GROUP, INC.  AND SUBSIDIARIES Notes to Consolidated Financial Statements ‰ Commodity prices and spreads.
The ranges for commodity prices and spreads cover variability in products, maturities and delivery locations.
Sensitivity of Fair Value Measurement to Changes in Significant Unobservable Inputs The following is a description of the directional sensitivity of the firm’s level 3 fair value measurements to changes in significant unobservable inputs, in isolation: ‰ Correlation.
In general, for contracts where the holder benefits from the convergence of the underlying asset or index prices (e. g. , interest rates, credit spreads, foreign exchange rates, inflation rates and equity prices), an increase in correlation results in a higher fair value measurement.
‰ Volatility.
In general, for purchased options, an increase in volatility results in a higher fair value measurement.
‰ Credit spreads, upfront credit points and recovery rates.
In general, the fair value of purchased credit protection increases as credit spreads or upfront credit points increase or recovery rates decrease.
Credit spreads, upfront credit points and recovery rates are strongly related to distinctive risk factors of the underlying reference obligations, which include reference entityspecific factors such as leverage, volatility and industry, market-based risk factors, such as borrowing costs or liquidity of the underlying reference obligation, and macroeconomic conditions.
‰ Commodity prices and spreads.
In general, for contracts where the holder is receiving a commodity, an increase in the spread (price difference from a benchmark index due to differences in quality or delivery location) or price results in a higher fair value measurement.
Due to the distinctive nature of each of the firm’s level 3 derivatives, the interrelationship of inputs is not necessarily uniform within each product type.
Level 3 Rollforward The table below presents a summary of the changes in fair value for all level 3 derivatives.
## Table 1 ##
In the table above: ‰ Changes in fair value are presented for all derivative assets and liabilities that are classified in level 3 as of the end of the period.
‰ Net unrealized gains/(losses) relates to instruments that were still held at period-end.
‰ If a derivative was transferred into level 3 during a reporting period, its entire gain or loss for the period is classified in level 3.
Transfers between levels are reported at the beginning of the reporting period in which they occur.
‰ Positive amounts for transfers into level 3 and negative amounts for transfers out of level 3 represent net transfers of derivative assets.
Negative amounts for transfers into level 3 and positive amounts for transfers out of level 3 represent net transfers of derivative liabilities.
‰ A derivative with level 1 and/or level 2 inputs is classified in level 3 in its entirety if it has at least one significant level 3 input.
‰ If there is one significant level 3 input, the entire gain or loss from adjusting only observable inputs (i. e. , level 1 and level 2 inputs) is classified in level 3.
‰ Gains or losses that have been classified in level 3 resulting from changes in level 1 or level 2 inputs are frequently offset by gains or losses attributable to level 1 or level 2 derivatives and/or level 1, level 2 and level 3 cash instruments.
As a result, gains/(losses) included in the level 3 rollforward below do not necessarily represent the overall impact on the firm’s results of operations, liquidity or capital resources.
THE GOLDMAN SACHS GROUP, INC.  AND SUBSIDIARIES Notes to Consolidated Financial Statements Fair Value of Other Financial Assets and Financial Liabilities by Level The table below presents, by level within the fair value hierarchy, other financial assets and financial liabilities at fair value, substantially all of which are accounted for at fair value under the fair value option.
## Table 2 ##
In the table above, other financial assets are shown as positive amounts and other financial liabilities are shown as negative amounts.
Valuation Techniques and Significant Inputs Other financial assets and financial liabilities at fair value are generally valued based on discounted cash flow techniques, which incorporate inputs with reasonable levels of price transparency, and are generally classified in level 2 because the inputs are observable.
Valuation adjustments may be made for liquidity and for counterparty and the firm’s credit quality See below for information about the significant inputs used to value other financial assets and financial liabilities at fair value, including the ranges of significant unobservable inputs used to value the level 3 instruments within these categories.
These ranges represent the significant unobservable inputs that were used in the valuation of each type of other financial assets and financial liabilities at fair value.
The ranges and weighted averages of these inputs are not representative of the appropriate inputs to use when calculating the fair value of any one instrument.
For example, the highest yield presented below for other secured financings is appropriate for valuing a specific agreement in that category but may not be appropriate for valuing any other agreements in that category.
Accordingly, the ranges of inputs presented below do not represent uncertainty in, or possible ranges of, fair value measurements of the firm’s level 3 other financial assets and financial liabilities.
Resale and Repurchase Agreements and Securities Borrowed and Loaned.
The significant inputs to the valuation of resale and repurchase agreements and securities borrowed and loaned are funding spreads, the amount and timing of expected future cash flows and interest rates.
As of both December 2018 and December 2017, the firm had no level 3 resale agreements, securities borrowed or securities loaned.
As of both December 2018 and December 2017, the firm’s level 3 repurchase agreements were not material.
See Note 10 for further information about collateralized agreements and financings.
Other Secured Financings.
The significant inputs to the valuation of other secured financings at fair value are the amount and timing of expected future cash flows, interest rates, funding spreads, the fair value of the collateral delivered by the firm (which is determined using the amount and timing of expected future cash flows, market prices, market yields and recovery assumptions) and the frequency of additional collateral calls.
As of December 2018, the firm’s level 3 other secured financings were not material.
The ranges of significant unobservable inputs used to value level 3 other secured financings as of December 2017 are as follows: ‰ Yield: 0.6% to 13.0% (weighted average: 3.3%) ‰ Duration: 0.7 to 11.0 years (weighted average: 2.7 years) Generally, increases in yield or duration, in isolation, would have resulted in a lower fair value measurement as of December 2017.
Due to the distinctive nature of each of the firm’s level 3 other secured financings, the interrelationship of inputs is not necessarily uniform across such financings.
See Note 10 for further information about collateralized agreements and financings.

Tables referenced above, in order (Table 0 first):
<table><tr><td></td><td>As of December</td></tr><tr><td><i>in millions</i></td><td>2013</td><td>2012</td></tr><tr><td>Net derivative liabilities under bilateral agreements</td><td>$22,176</td><td>$27,885</td></tr><tr><td>Collateral posted</td><td>18,178</td><td>24,296</td></tr><tr><td>Additional collateral or termination payments for a one-notch downgrade</td><td>911</td><td>1,534</td></tr><tr><td>Additional collateral or termination payments for a two-notch downgrade</td><td>2,989</td><td>2,500</td></tr></table>
<table><tr><td></td><td colspan="2">Year Ended December</td></tr><tr><td><i>$ in millions</i></td><td>2017</td><td>2016</td></tr><tr><td> Total level 3 derivatives</td><td></td><td></td></tr><tr><td>Beginning balance</td><td>$-1,217</td><td>$ 495</td></tr><tr><td>Net realized gains/(losses)</td><td>-119</td><td>-37</td></tr><tr><td>Net unrealized gains/(losses)</td><td>-436</td><td>777</td></tr><tr><td>Purchases</td><td>301</td><td>115</td></tr><tr><td>Sales</td><td>-611</td><td>-3,557</td></tr><tr><td>Settlements</td><td>1,891</td><td>782</td></tr><tr><td>Transfers into level 3</td><td>-39</td><td>352</td></tr><tr><td>Transfers out of level 3</td><td>-58</td><td>-144</td></tr><tr><td> Ending balance</td><td>$ -288</td><td>$-1,217</td></tr></table>
<table><tr><td><i>$ in millions</i></td><td>Level 1</td><td>Level 2</td><td>Level 3</td><td>Total</td></tr><tr><td> As of December 2018</td><td></td><td></td><td></td><td></td></tr><tr><td> Assets</td><td></td><td></td><td></td><td></td></tr><tr><td>Resale agreements</td><td> $ –</td><td>$ 139,220</td><td>$ –</td><td>$ 139,220</td></tr><tr><td>Securities borrowed</td><td> –</td><td>23,142</td><td>–</td><td>23,142</td></tr><tr><td>Customer and other receivables</td><td> –</td><td>3,183</td><td>6</td><td>3,189</td></tr><tr><td> Total</td><td> $ –</td><td>$ 165,545</td><td>$ 6</td><td>$ 165,551</td></tr><tr><td> Liabilities</td><td></td><td></td><td></td><td></td></tr><tr><td>Deposits</td><td> $ –</td><td>$ -17,892</td><td>$ -3,168</td><td>$ -21,060</td></tr><tr><td>Repurchase agreements</td><td> –</td><td>-78,694</td><td>-29</td><td>-78,723</td></tr><tr><td>Securities loaned</td><td> –</td><td>-3,241</td><td>–</td><td>-3,241</td></tr><tr><td>Other secured financings</td><td> –</td><td>-20,734</td><td>-170</td><td>-20,904</td></tr><tr><td>Unsecured borrowings:</td><td></td><td></td><td></td><td></td></tr><tr><td>Short-term</td><td> –</td><td>-12,887</td><td>-4,076</td><td>-16,963</td></tr><tr><td>Long-term</td><td> –</td><td>-34,761</td><td>-11,823</td><td>-46,584</td></tr><tr><td>Other liabilities</td><td> –</td><td>-1</td><td>-131</td><td>-132</td></tr><tr><td> Total</td><td> $ –</td><td>$-168,210</td><td>$-19,397</td><td>$-187,607</td></tr><tr><td>As ofDecember 2017</td><td></td><td></td><td></td><td></td></tr><tr><td> Assets</td><td></td><td></td><td></td><td></td></tr><tr><td>Resale agreements</td><td>$ –</td><td>$ 120,420</td><td>$ –</td><td>$ 120,420</td></tr><tr><td>Securities borrowed</td><td>–</td><td>78,189</td><td>–</td><td>78,189</td></tr><tr><td>Customer and other receivables</td><td>–</td><td>3,522</td><td>4</td><td>3,526</td></tr><tr><td>Total</td><td>$ –</td><td>$ 202,131</td><td>$ 4</td><td>$ 202,135</td></tr><tr><td> Liabilities</td><td></td><td></td><td></td><td></td></tr><tr><td>Deposits</td><td>$ –</td><td>$ -19,934</td><td>$ -2,968</td><td>$ -22,902</td></tr><tr><td>Repurchase agreements</td><td>–</td><td>-84,681</td><td>-37</td><td>-84,718</td></tr><tr><td>Securities loaned</td><td>–</td><td>-5,357</td><td>–</td><td>-5,357</td></tr><tr><td>Other secured financings</td><td>–</td><td>-23,956</td><td>-389</td><td>-24,345</td></tr><tr><td>Unsecured borrowings:</td><td></td><td></td><td></td><td></td></tr><tr><td>Short-term</td><td>–</td><td>-12,310</td><td>-4,594</td><td>-16,904</td></tr><tr><td>Long-term</td><td>–</td><td>-31,204</td><td>-7,434</td><td>-38,638</td></tr><tr><td>Other liabilities</td><td>–</td><td>-228</td><td>-40</td><td>-268</td></tr><tr><td>Total</td><td>$ –</td><td>$ -177,670</td><td>$ -15,462</td><td>$ -193,132</td></tr></table>

Question: What is the average amount of Resale agreements Assets of Level 2 is, and Beginning balance of Year Ended December 2017 ?
Answer: 60818.5
Reasoning program: add(120420.0,1217.0), divide(#0,const_2)