import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 63 - 1 mod = 998244353 n, q = mi() start = [[] for _ in range(10 ** 5 + 1)] end = [[] for _ in range(10 ** 5 + 1)] for _ in range(q): i, s, t = mi() i -= 1 start[s].append(i) end[t].append(i) ans = [0] * n counter = 0 now = 0 for t in range(10 ** 5 + 1): for v in start[t]: ans[v] -= counter now += 1 for v in end[t]: ans[v] += counter now -= 1 if now > 0: counter += 1 / now for v in ans: print(v)