Table:
|  | Years ended December 31 |  |  | 2019 vs 2018 | 2018 vs 2017 |
| --- | --- | --- | --- | --- | --- |
|  | 2019 | 2018 | 2017 | % Change | % Change |
|  | (in thousands, except percentages) |  |  |  |  |
| Gross profit | $ 865,643 | $ 596,267 | $ 380,253 | 45.2 % | 56.8 % |
| Percentage of total revenues | 54.9 % | 55.6 % | 56.5 % |  |  |
Paragraphs:
Gross Profit
Gross profit increased $269.4 million, or 45.2%, for the year ended December 31, 2019 compared to the same period in 2018. As a percentage of total revenues, gross profit decreased from 55.6% in the year ended December 31, 2018 to 54.9% in the year ended December 31, 2019, due to Shopify Payments representing a larger percentage of total revenue and an increase in amortization of technology related to the 6RS acquisition as well as other platform enhancements. This was partly offset by lower third-party infrastructure and hosting costs and employee-related costs as a percentage of revenues as well as the relative growth of higher-margin merchant solutions products, namely Shopify Capital and referral fees from partners.
Gross profit increased $216.0 million, or 56.8%, for the year ended December 31, 2018 compared to the same period in 2017. As a percentage of total revenues, gross profit decreased from 56.5% in the year ended December 31, 2017 to 55.6% in the year ended December 31, 2018, due to Shopify Payments representing a larger percentage of total revenue, increasing the functionality and flexibility of our hosting infrastructure, and higher product costs associated with expanding our product offerings. This was partly offset by the relative growth of higher-margin merchant solutions products, namely referral fees from partners, Shopify Capital, and Shopify Shipping.
Question:
What is the average gross profit for 2018 and 2019?
Answer: (865643+596267)/2 = 730955