Rainw is always smiling. So, some people who are very good had token n photos of him smiling.
Each of these photos has a classical value, and i-th photo has wi classical value.
As time goes on, each photo will become more and more classical, the classical value of the i-th photo will become
Playf is a photo lover. He wants to know for each t, how many photos can be selected at most so that the sum of the classical value of the selected photos is a multiple of n.
The first line contains a single integer n
.
The second line contains n integers
represents the classical value of the i-th photo.
For each tprint a single integer, represents the maximum number of photos Playf can select.