n,q = map(int,input().split()) event = [] x = [] for i in range(q): e,s,t = map(int,input().split()) event.append((e,s,1)) event.append((e,t,-1)) x.append((e,s,t)) table = [0 for i in range(100000+1)] temp = 0 event.sort(lambda x:x[1]) i = 0 for e,s,f in event: if f == 1: while i != s: table[i] = 1/temp if temp != 0 else 0 i += 1 temp += 1 else: while i != s: table[i] = 1/temp if temp != 0 else 0 i += 1 temp -= 1 import itertools ta = list(itertools.accumulate(table)) ta.append(0) ans = [0 for i in range(n)] for e,s,t in x: e -= 1 ans[e] += ta[t-1]-ta[s-1] print(*ans,sep='\n')