On August 1, a student signed a lease for an apartment for a period of three years. Under the lease agreement, a security deposit of $500 is required with the deposit to be returned at the expiration of the lease, with 10% interest compounded semiannually. What amount will the student receive at the time the lease expires?