a = 1000001 n, q = (int(x) for x in input().split()) M = [[0 for i in range(0,a+1)]for j in range(0,n+1)] T = [0] * (a+1) A = [0] * n for i in range(0,q): m, t1, t2 = (int(x) for x in input().split()) for i in range(t1,t2): T[i+t1] += 1 M[m-1][i+t1] = 1 for i in range(0,n): for j in range(0,a): if M[i][j] == 1 and T[j] != 0: A[i] += 1/T[j] for i in range(0,n): print(A[i])