import Control.Applicative
import Control.Monad
import Data.Vector.Unboxed.Mutable (IOVector, STVector)
import qualified Data.Vector.Unboxed.Mutable as VM

main :: IO ()
main = readLn >>= solve

solve :: Int -> IO ()
solve n = do
  let ls = takeWhile ((< n) .(^2)) [1..]
  v <- VM.replicate (n + 1) 0 :: IO (IOVector Int)
  forM_ ls $ \x -> do
    forM_ ls $ \y -> do
      forM_ ls $ \z -> do
        let m = x * x + y * y + z * z + x * y + y * z + z * x
        when (m <= n) $ do
          VM.modify v (+1) m
  forM_ [1 .. n] $ \i -> do
    c <- VM.read v i
    print c
