n,q = map(int,input().split()); m = 10**5+1 lst = [tuple(map(int,input().split())) for _ in range(q)] c = [0]*(m+1) for _,s,t in lst: c[s] += 1; c[t] -= 1 for i in range(m): c[i+1] += c[i] x = [1/v if v else 0 for v in c] for i in range(m-1): x[i+1] += x[i] ans = [0]*n for l,s,t in lst: ans[l-1] += x[t-1]-x[s-1] print(*ans,sep="\n")