The cows are hard at work trying to invent interesting new games to play. One of their current endeavors involves a set of N intervals (1≤N≤2⋅105), where the ith interval starts at position a_i on the number line and ends at position b_i≥a_i. Both a_i and b_i are integers in the range 0…M, where 1≤M≤5000.
To play the game, Bessie chooses some interval (say, the ith interval) and her cousin Elsie chooses some interval (say, the jth interval, possibly the same as Bessie's interval). Given some value k, they win if a_i+a_j≤k≤b_i+b_j.
For every value of k in the range 0…2M, please count the number of ordered pairs (i,j) for which Bessie and Elsie can win the game.
The first line of input contains N and M. Each of the next N lines describes an interval in terms of integers a_i and b_i.
Please print 2M+1 lines as output, one for each value of k in the range 0…2M.