In the beginning of December, parliamentary elections were held in our country. Croatia is divided in 10 election regions. From each region, 14 parliamentary representatives are elected. Each of the voters is voting for one of the few parties. After voting, the representatives are elected using the D'Hondt (D"Ont) method.
By this method, first we select parties which gathered at least
First of the
Write a program that, given the total number of voters and number of votes each party gained, determines how many politicians were elected as region representatives from each party. Some parties have gained negligible number of votes and will not be in the input - that is the reason that the total number of voters might not be equal to the sum of list votes in the input.
Input Specification
First line of input contains a positive integer
Second line of input contains a positive integer
Next
Output Specification
Output is consisted of number of lines equal to the number of parties which had at least
Scoring
In
Sample Input 1
235217
3
A 107382
C 18059
B 43265
Sample Output 1
A 9
B 4
C 1
Sample Input 2
245143
4
F 14845
A 104516
B 52652
C 14161
Sample Output 2
A 8
B 4
C 1
F 1
Sample Input 3
206278
5
D 44687
A 68188
C 7008
B 48377
G 9665
Sample Output 3
A 6
B 4
D 4
Comments
Since the original data were wrong, the affected case has been updated, and all submissions were rejudged.