John Snow is travelling from Winterfell to Dragonstone to meet Daeneryys Targaryen. In between, Winterfell and Dragonstone there are ‘N’ number of towns numbered 1,2,3… N (excluding Winterfell). John will start travelling from Winterfell to town 1 and then to town 2 and so on upto town N (Dragonstone). Winterfell is numbered as Town 0. John Snow loves to drink Blackberry wine while travelling.
Each town has got some value ‘C’ associated with it i.e number of bottles of Blackberry at each that town. The value of ‘C’ for Winterfell is 0.
When moving from town ‘i’ to town ‘i+1’, John Snow will either get or lose some bottles of Blackberry Wine. While moving from town i to town i+1, John snow will get Ci – Ci+1 ,0<=i< N ,bottles if this number is non-negative else he will lose that number of bottles.
John snow cannot move from town i to town i+1 if he has negative number of bottles with him at any point of time. So, he might need to buy some bottles of wine to continue his journey to Dragonstone. Price of each bottle of Blackberry wine is ‘X’ .
Initially, John has ‘P’ amount of money with him, so he asks you whether it is possible for him to travel to Dragonstone or not. If it is possible to reach, what amount of money he can save while spending minimum amount of money. If it is not possible, how much more minimum amount of money he will require to reach Dragonstone.
Input :
- First line of the input will contain T (No. of test cases).
- For each test case, first line will contain three space separated integers N, X and P (i.e. number of towns, price of each Blackberry wine bottle and amount of money John is having respectively.) Next line will contain N space separated integers denoting Ci, the number of Blackberry wine bottles at ith town.
Output :
For every test case, if it is possible to reach Dragonstone print “Possible” without quotes and next line print amount of money John will be able to save. If it is not possible to reach Dragonstone with ‘P’ amount of money print “Impossible” without quotes and also print minimum amount of money needed more in next line.
Constraints :
- 1<=T<=10
- 1<=N<=100000 (10^5)
- 1<=Ci<=10^9
- 1<=X<=1000
- 1<=P<=10^9