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

Ex Input:
Problem: a certain kind of necklace is made from 9 green , 6 white , and 3 orange beads . what is the maximum number of these necklaces that can be made from 45 beads of each color ?

Ex Output:
5


Ex Input:
Problem: when a merchant imported a certain item , he paid a 7 percent import tax on the portion of the total value of the item in excess of $ 1,000 . if the amount of the import tax that the merchant paid was $ 94.50 , what was the total value of the item ?

Ex Output:
$ 2,350


Ex Input:
Problem: what is the value of n if the sum of the consecutive odd intergers r from 1 to n equals 169 ?

Ex Output:

25