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

Ex Input:
Problem: when positive integer n is divided by positive integer p , the quotient is 18 , with a remainder of 7 . when n is divided by ( p + 3 ) , the quotient is 15 and the remainder is 1 . what is the value of n ?

Ex Output:
20


Ex Input:
Problem: income and expenditure of a person are in the ratio 7 : 6 . if the income of the person is rs . 14000 , then find his savings ?

Ex Output:
2000


Ex Input:
Problem: a train is 485 meter long is running at a speed of 45 km / hour . in what time will it pass a bridge of 140 meter length

Ex Output:

50 seconds