
object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val n, m = sc.nextInt()
  val r = Array.fill(m*2)(sc.nextInt())
  val ret = r.groupMapReduce(identity)(_ => 1)(_ + _)
  (1 to n).foreach(i => if (ret.contains(i)) println(ret(i)) else println(0))
}