N,Q = map(int,input().split()) q = [] C = 10 ** 5 num = [0] * (C + 2) for _ in range(Q): i,s,t = map(int,input().split()) num[s] += 1 num[t] -= 1 q.append((i,s,t)) for i in range(C + 1): num[i + 1] += num[i] S = [0] * (C + 1) S[0] = 1 / num[0] if num[0] != 0 else 0 for i in range(C): if num[i + 1] != 0: u = 1 / num[i + 1] else: u = 0 S[i + 1] = S[i] + u ans = [0] * (N + 1) for i,s,t in q: if s == 0: ans[i] += S[t - 1] else: ans[i] += S[t - 1] - S[s- 1] for i in range(N): print(ans[i + 1])