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

Ex Input:
Problem: during a car trip , maria stopped to rest after she traveled 1 / 2 of the total distance to her destination . she stopped again after she traveled 1 / 4 of the distance remaining between her first stop and her destination , and then she drove the remaining 135 miles to her detination . what was the total distance , in miles from maria ' s starting point to her destination ?

Ex Output:
360


Ex Input:
Problem: a sells a bicycle to b and makes a profit of 60 % . b sells the same bicycle to c at a profit of 25 % . if the final s . p . of the bicycle was rs . 225 , find out the cost price of the bicycle for a .

Ex Output:
112.


Ex Input:
Problem: if ( 2 ^ 16 ) ( 25 ^ s ) = 5 ( 10 ^ m ) what is the value of m ?

Ex Output:

16