A person deposits 1000 into an account that pays interest at a nominal rate of i convertible quarterly for the first 8 years and thereafter pays interest at a rate of 1.5i convertible bimonthly. The amount in the account after 5 years is 1516. How much is in the account after 10 years?