N, Q = map(int, input().split()) query = [list(map(int, input().split())) for _ in range(Q)] imos = [0]*(10**5+1) for I, S, T in query: imos[S] += 1 imos[T] -= 1 for i in range(1, 10**5+1): imos[i] += imos[i-1] for i in range(10**5+1): if 1 <= imos[i]: imos[i] = 1/imos[i] cum = [0] for i in range(10**5+1): cum.append(cum[-1]+imos[i]) def cumQ(L, R): return cum[R]-cum[L] ans = [0]*N for I, S, T in query: ans[I-1] += cumQ(S, T) print(*ans, sep="\n")