Benny likes functions.
Initially, she has an array P consisting of n elements with indices from 0 to n−1. All the elements of the array are zeroes.
In this problem, she asks you to help her proceed some queries.
Each query looks like: t l r p
. You have to make Pi=Pi+Ft(i−l,p) for all i from l to r.
There are several types of functions.
Input format
The first line contains two integers: n and m.
The next m lines contain four integers t, l, r, p
Constraints
1≤n,m≤105
0≤l≤r<n
1≤t≤3
Output format
Output the result array P, each number with at least 6 digits after decimal point.
Scoring
Let Q be correct answer and P is the output produced by participant. Then the score is: −1000⋅ln[max(maxiei,10−10)], where ei is an error for i-th number, which is computed as ei=|Pi−Qi|max(1,Qi).