Your friend John works at a shop that sells types of products, numbered from to .
Product has a price of bytedollars, where is a positive integer.
The government of Byteland has created a new law for shops. The law states that the average of the prices of all products in a shop should be exactly , where is a positive integer.
John's boss gave him the task to change the prices of the products so the shop would comply with the new law.
He has lots of other stuff to do, so he asked you for help: what is the minimum number of products whose prices should be changed?
A product's price can be changed to any positive integer amount of bytedollars.
Input data
The first line of the input contains two integers and .
The next line contains positive integers, .
Output data
Output a single integer between and , inclusive: the answer to the question.
It can be proven that it is always possible to change the prices of some products so that the new prices comply with the law.
Constraints and clarifications
- .
- .
- for each .
- For tests worth points, .
- For tests worth more points, .
Example 1
stdin
2 3
10 6
stdout
2
Explanation
In the first sample case a possible solution is to change both prices to be bytedollars. It can be proven that changing only one price is not sufficient.
Example 2
stdin
3 9
2 10 1
stdout
1
Explanation
In the second sample case a possible solution is to change the first product's price to bytedollars, thus the average will be .