The task is to generate the correct answer for a given math problem.

Ex Input:
Problem: a family pays $ 800 per year for an insurance plan that pays 70 percent of the first $ 1,000 in expenses and 100 percent of all medical expenses thereafter . in any given year , the total amount paid by the family will equal the amount paid by the plan when the family ' s medical expenses total how much ?

Ex Output:
$ 1,400


Ex Input:
Problem: every year an amount increases by 1 / 8 th of itself . how much will it be after two years if its present value is rs . 70400 ?

Ex Output:
89100


Ex Input:
Problem: what is the remainder when 1201 × 1202 × 1204 × 1205 is divided by 6 ?

Ex Output:

4