Brant has a 40-year fixed rate mortgage for 345,500 with monthly payments of 878.85. The annual interest rate is 3%. What is the total cost of the principal and interest for this loan rounded to the nearest dollar?