Benny And Her School Reports

3.2

25 votes
Mathematics, Approved, Easy
Problem

Benny is a little pig. She usually goes to school, but the summer is coming which is also the time of getting the grade card report of all the N + 1 subjects.

Benny has a M grade point system. Hence, all the scores for any subject are not less than 1 and not greater than M.

During this year of education, Benny got N scores for each of the N subjects. The score for a subject i is denoted by Ai.

Recently, her father promised that if her average score for all (N+1) subjects is not less that X, then he will buy the new iTone7 for her.

Only one thing remained.

Benny wants to know what is the minimal possible score that she can get in the last remaining subject i.e., (N+1)th subject in order to receive the new iTone7? Of course, it might be impossible.

Input

The input consists of several test cases.

The first line contains integer T denoting the number of test cases.

Each test case consists of two lines. The first line contains three space separated integers N, M and X. And the next line contains N integers denoting the Ai.

Output

For each test case, output minimal possible score needed in the last subject or print "Impossible" (without quotes) if Benny has no chances to receive new iTone7.

Constraints

  • 1T, N105
  • 1M109
  • 1AiM

Note
It's guaranteed that the sum of N over all test cases won't exceed 105.

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation
  • In the first sample test case, even if she manages to get M marks in the last subject, still the mean would not reach upto X
  • In the second sample test case, if she manages to get only a mark in the last subject, her mean will be atleast X
Editor Image

?