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

Input: Consider Input: Problem: the ratio of three numbers is 2 : 3 : 4 and their sum is 180 . the second number of the three numbers is ?

Output: 60


Input: Consider Input: Problem: the average of 5 quantities is 12 . the average of 3 of them is 4 . what is the average of remaining 2 numbers ?

Output: 24


Input: Consider Input: Problem: how many numbers up to 300 and 700 are divisible by 2 , 3 and 7 both together ?


Output: 9