Darcy is celebrating his IOI platinum medal. At his party, he split up his cake into many slices and distributed the slices equally. However, Eric, his supervisor, noticed that Darcy accidentally gave some people too many or too few slices. Calculate how many times Darcy made a mistake.
The first line contains , the number of people at the party. The next line contains integers, each integer representing the number of slices of cake the th person has.
It is guaranteed that the total number of slices will be divisible by the number of people at the party.
Output the number of people who did not recieve the number of slices they should have recieved if the cake was divided equally.
5 1 3 2 2 2
If the slices were evenly distributed, everyone would recieve 2 slices. Darcy only gave 1 slice to person 1, and gave the extra slice to person 2.