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

Ex Input:
Problem: i had rs . 10000 with me . out of this , money i lent some money to a for 2 years at 15 % simple interest . i lent the remaining money to b for an equal number of years at 18 % simple interest . after 2 years , i found that a had given me rs . 360 more as interest as compared to ( b ) the amount of money which i had lent to b must have been

Ex Output:
4000


Ex Input:
Problem: the function f ( n ) is defined as the product of all the consecutive positive integers between 3 and n ^ 2 , inclusive , whereas the function g ( n ) is defined as the product of the squares of all the consecutive positive integers between 1 and n , inclusive . the exponent on 2 in the prime factorization of f ( 3 ) / g ( 3 ) is

Ex Output:
3


Ex Input:
Problem: a alone can do a piece of work in 6 days and b alone in 8 days . a and b undertook to do it for rs . 6000 . with the help of c , they completed the work in 3 days . how much is to be paid to c ?

Ex Output:

s . 750