a = 100000 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()) j = 0 for j in range(t1,t2): T[j] += 1 M[m-1][j] = 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])