Build a histogram of non-negative integer values using fixed-width bins
[0,w), [w,2w), [2w,3w), ... A value v belongs to the bin where
bin_index = v // w (so a value equal to a bin's upper edge belongs to the
NEXT bin).
Print every bin from [0,w) through the bin containing the maximum value —
including empty bins in between.
Input Format:
Line 1: w (bin width, positive integer)
Line 2: n (number of values, n >= 1)
Lines 3 to n+2: one non-negative integer value per line
Output Format:
One line per bin, in ascending order:
[lo,hi) count