inputNM = input() splitNM = inputNM.split() Nday = int(splitNM[0]) Member = int(splitNM[1]) joindays = [] for i in range(Nday): joindays.append(0) for i in range(Member): LRinput = input() LRsplit = LRinput.split() L = int(LRsplit[0]) R = int(LRsplit[1]) for j in range(L,R-1,-1): joindays[-j] += 1 for i in range(Nday): print(joindays[i])