N,Q=map(int,input().split()) L=[] v=[0]*(10**5+1) for i in range(Q): t,l,r=map(int,input().split()) v[l]+=1 v[r]-=1 L.append((t,l,r)) for i in range(1,10**5+1): v[i]=v[i-1]+v[i] for i in range(10**5+1): if v[i]>0: v[i]=1/v[i] for i in range(1,10**5+1): v[i]=v[i-1]+v[i] result=[0]*N for i in range(Q): t,l,r=L[i][:] result[t-1]+=v[r-1] if l>0: result[t-1]-=v[l-1] for i in range(N): print(result[i])