N, Q = map(int, input().split()) IST = [list(map(int, input().split())) for _ in range(Q)] P = [0 for _ in range(10**5+1)] for i, s, t in IST: P[s] += 1 P[t] -= 1 S = [0] for p in P: S.append(S[-1]+p) M = [0] for s in S: if s==0: M.append(M[-1]) else: M.append(M[-1]+(1/s)) ans = [0 for _ in range(N)] for i, s, t in IST: ans[i-1] += M[t+1]-M[s+1] for a in ans: print(a)