import Control.Monad
import Control.Applicative

includeI :: Int -> (Int, Int) -> Int
includeI n (x,y) = if x == n || y == n then 1 else 0

main = do
  [n, m] <- map read . words <$> getLine
  numPares <- replicateM m $ do
              [p, q] <- map read . words <$> getLine
              return (p, q)
  forM_ [1..n] $ \i -> putStrLn $ show $ sum $ map (includeI i) numPares

