n,q=map(int,input().split()) m=100000 a=[] g=[0]*(m+2) for i in range(q): p,s,t=map(int,input().split()) p-=1 a.append((p,s,t)) g[s]+=1 g[t]-=1 for i in range(m+1): g[i]+=g[i-1] for i in range(m+1): if g[i]>0: g[i]=1/g[i] for i in range(m+1): g[i]+=g[i-1] f=[0]*n for p,s,t in a: f[p]+=g[t-1]-g[s-1] print(*f,sep="\n")