object Main {
  def main(args: Array[String]): Unit = {
    val input      = scala.io.StdIn.readInt
    val sqrt_input = Math.sqrt( input ).toInt

    var map: Map[ Int, Int ] = Map.empty

    ( 1 to input ).foreach{ i =>
      map += ( i -> 0 )
    }

    ( 1 to sqrt_input ).foreach{ x =>
      ( 1 to sqrt_input ).foreach{ y =>
        ( 1 to sqrt_input ).foreach{ z =>
          val calc_num = x*x + y*y + z*z + x*y + y*z + z*x
          if( calc_num <= input ) {
            map += ( calc_num -> ( map( calc_num ) + 1 ) )
          }
        }
      }
    }

    ( 1 to input ).foreach{ i =>
      println( map( i ) )
    }
  }
}