Counting Friends

No attempts yetTime limit1sMemory limit256 MB

Problem

The friendships among the NN students in Dohyun's class are given. Write a program that prints how many friends each student has.

The students are numbered from 1 to NN. If AA and BB are friends, then BB and AA are friends too. Nobody is a friend of themselves, so a relation where AA and BB are the same student is never given.

Input

The first line contains the number of students NN (1N100,0001 \le N \le 100{,}000) and the number of friendships MM (0M1,000,0000 \le M \le 1{,}000{,}000), separated by a space.

Each of the next MM lines contains one friendship as AA BB, the numbers of two students who are friends (1A,BN1 \le A, B \le N, ABA \ne B).

No friendship is given twice. If AA BB is given, then neither BB AA nor AA BB is given again.

Output

Print NN lines. The ii-th line contains the number of friends of student ii, for ii from 1 to NN.