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

Ex Input:
Problem: john invests $ x at the semi - annual constant compounded rate of 2 percent and also does $ 20,000 at the quarterly constant compounded rate of 4 percent . if the interests are the same after 1 year , what is the value of x ? ?

Ex Output:
40,402


Ex Input:
Problem: the least number which should be added to 1789 so that the sum is exactly divisible by 5 , 6 , 4 and 3 is ?

Ex Output:
11


Ex Input:
Problem: in a caravan , in addition to 50 hens there are 45 goats and 8 camels with some keepers . if the total number of feet be 224 more than the number of heads , find the number of keepers .

Ex Output:

15