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

Input: Consider Input: Problem: dhoni bought 5 toys with the average cost of $ 10 . if david also buys the sixth toy with the price of $ 16 , what is the average ( arithmetic mean ) price of those 6 toys ?

Output: $ 1

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: if n = 16 10 ^ ( - p ) and 4 < p < 4 , how many different integer values of p will make n a perfect square ?
Output: 3