If Bob deposits $5,000 at the beginning of each year for 10 years in an account paying 12% interest compounded annually, find the amount he will have at the end of the 10 years.